Search

Wordpress Hooks


In WordPress theme and development, Hooks are functions that can be applied to an Action or a Filter in WordPress. Actions and Filters in WordPress are functions that can be altered by theme and plugin developers to change the default WordPress functionality.

Functions used to alter Actions/Filters in WordPress can be hooked into WordPress. In any case, note that actions and filters are not some thing very similar. Actions are functions performed when a specific occasion happens in WordPress. Filters enable you to change certain functions. Arguments used to hook the two filters and actions appear to be identical. Be that as it may, they are different in functionality and how they carry on.

$per_page

Filter Hook : Filter the number of items per page to show for a specific ‘per_page’ type.

‘handle_bulk_actions-‘ . get_current_screen()->id

Filter Hook : Fires when a custom bulk action should be handled.

‘handle_network_bulk_actions-‘ . get_current_screen()->id

Filter Hook : Fires when a custom bulk action should be handled.

activated_plugin

Action Hook : Fires after a plugin has been activated.

activate_blog

Action Hook : Fires after a network site is activated.

activate_header

Action Hook : Fires before the Site Activation page is loaded.

activate_wp_head

Action Hook : Fires before the Site Activation page is loaded.

activate_{$plugin}

Action Hook : Fires as a specific plugin is being activated.

activity_box_end

Action Hook : Fires at the end of the ‘At a Glance’ dashboard widget.

added_existing_user

Action Hook : Fires immediately after an existing user is added to a site.

added_option

Action Hook : Fires after an option has been added.

added_term_relationship

Action Hook : Fires immediately after an object-term relationship is added.

added_{$meta_type}_meta

Action Hook : Fires immediately after meta of a specific type is added.

additional_capabilities_display

Filter Hook : Filters whether to display additional capabilities for the user.

add_admin_bar_menus

Action Hook : Fires after menus are added to the menu bar.

add_attachment

Action Hook : Fires once an attachment has been added.

add_category_form_pre

Action Hook : Fires before the Add Category form.

add_inline_data

Action Hook : Fires after outputting the fields for the inline editor for posts and pages.

add_link

Action Hook : Fires after a link was added to the database.