WPDev.one
Event Triggers

Actions Reference

240+ event triggers available in WordPress core. Hooks that fire at specific times during WordPress execution to run your custom code.

Showing 151 to 200 of 240 actions (Page 4 of 5)
sidebar_admin_page

Fires after the available widgets and sidebars have loaded, before the admin footer.

admin_init

This action is documented in wp-admin/admin.php

admin_post_nopriv

Fires on a non-authenticated admin post request where no action is supplied.

admin_post_nopriv_{$action}

Fires on a non-authenticated admin post request for the given action. The dynamic portion of the hook name, `$action`, refers to the given request action.

admin_post

Fires on an authenticated admin post request where no action is supplied.

admin_post_{$action}

Fires on an authenticated admin post request for the given action. The dynamic portion of the hook name, `$action`, refers to the given request action.

admin_init

This action is documented in wp-admin/admin.php

wp_ajax_{$action}

Fires authenticated Ajax actions for logged-in users. The dynamic portion of the hook name, `$action`, refers to the name of the Ajax action callback being fired.

wp_ajax_nopriv_{$action}

Fires non-authenticated Ajax actions for logged-out users. The dynamic portion of the hook name, `$action`, refers to the name of the Ajax action callback being fired.

after_db_upgrade

Fires on the next page load after a successful DB upgrade.

after_mu_upgrade

This action is documented in wp-admin/network/upgrade.php

1 argument
admin_init

Fires as an admin screen or script is being initialized. Note, this does not just run on user-facing admin screens. It runs on admin-ajax.php and admin-post.php as well. This is roughly analogous to the more general {@see 'init'} hook, which fires earlier.

load-{$page_hook}

Fires before a particular screen is loaded. The load- hook fires in a number of contexts. This hook is for plugin screens where a callback is provided when the screen is registered. The dynamic portion of the hook name, `$page_hook`, refers to a mixture of plugin page information including: 1. The page type. If the plugin page is registered as a submenu page, such as for Settings, the page type would be 'settings'. Otherwise the type is 'toplevel'. 2. A separator of '_page_'. 3. The plugin basename minus the file extension. Together, the three parts form the `$page_hook`. Citing the example above, the hook name used would be 'load-settings_page_pluginbasename'.

{$page_hook}

Used to call the registered callback for a plugin screen. This hook uses a dynamic hook name, `$page_hook`, which refers to a mixture of plugin page information including: 1. The page type. If the plugin page is registered as a submenu page, such as for Settings, the page type would be 'settings'. Otherwise the type is 'toplevel'. 2. A separator of '_page_'. 3. The plugin basename minus the file extension. Together, the three parts form the `$page_hook`. Citing the example above, the hook name used would be 'settings_page_pluginbasename'.

load-{$plugin_page}

Fires before a particular screen is loaded. The load- hook fires in a number of contexts. This hook is for plugin screens where the file to load is directly included, rather than the use of a function. The dynamic portion of the hook name, `$plugin_page`, refers to the plugin basename.

load-importer-{$importer}

Fires before an importer screen is loaded. The dynamic portion of the hook name, `$importer`, refers to the importer slug. Possible hook names include: - `load-importer-blogger` - `load-importer-wpcat2tag` - `load-importer-livejournal` - `load-importer-mt` - `load-importer-rss` - `load-importer-tumblr` - `load-importer-wordpress`

load-{$pagenow}

Fires before a particular screen is loaded. The load- hook fires in a number of contexts. This hook is for core screens. The dynamic portion of the hook name, `$pagenow`, is a global variable referring to the filename of the current screen, such as 'admin.php', 'post-new.php' etc. A complete hook for the latter would be 'load-post-new.php'.

load-page-new.php
load-page.php
load-categories.php
load-edit-link-categories.php
load-edit-tags.php
admin_action_{$action}

Fires when an 'action' request variable is sent. The dynamic portion of the hook name, `$action`, refers to the action derived from the `GET` or `POST` request.

site_health_tab_content

Fires when outputting the content of a custom Site Health tab. This action fires right after the Site Health header, and users are still subject to the capability checks for the Site Health page to view any custom tabs and their contents.

1 argument
enqueue_block_editor_assets

Fires after block assets have been enqueued for the editing interface. Call `add_action` on any hook before 'admin_enqueue_scripts'. In the function call you supply, simply use `wp_enqueue_script` and `wp_enqueue_style` to add your functionality to the block editor.

personal_options_update

Fires before the page loads on the 'Profile' editing screen. The action only fires if the current user is editing their own profile.

1 argument
edit_user_profile_update

Fires before the page loads on the 'Edit User' screen.

1 argument
user_edit_form_tag

Fires inside the your-profile form tag on the user editing screen.

admin_color_scheme_picker

Fires in the 'Admin Color Scheme' section of the user editing screen. The section is only enabled if a callback is hooked to the action, and if there is more than one defined color scheme for the admin.

1 argument
personal_options

Fires at the end of the 'Personal Options' settings table on the user editing screen.

1 argument
profile_personal_options

Fires after the 'Personal Options' settings table on the 'Profile' editing screen. The action only fires if the current user is editing their own profile.

1 argument
wp_create_application_password_form

Fires in the create Application Passwords form.

1 argument
show_user_profile

Fires after the 'About Yourself' settings table on the 'Profile' editing screen. The action only fires if the current user is editing their own profile.

1 argument
edit_user_profile

Fires after the 'About the User' settings table on the 'Edit User' screen.

1 argument
myblogs_allblogs_options

Fires before the sites list on the My Sites screen.

enqueue_block_editor_assets

This action is documented in wp-admin/edit-form-blocks.php

sidebar_admin_setup

This action is documented in wp-admin/widgets-form.php

widgets_admin_page

This action is documented in wp-admin/widgets-form.php

sidebar_admin_page

This action is documented in wp-admin/widgets-form.php

load_feed_engine

Fires before MagpieRSS is loaded, to optionally replace it.

rss_tag_pre

This action is documented in wp-includes/feed-rss2.php

1 argument
atom_ns

Fires at end of the Atom feed root to add namespaces.

atom_head

Fires just before the first Atom feed entry.

atom_author

Fires at the end of each Atom feed author entry.

atom_entry

Fires at the end of each Atom feed item.

rss_tag_pre

This action is documented in wp-includes/feed-rss2.php

1 argument
rdf_ns

Fires at the end of the feed root to add namespaces.

rdf_header

Fires at the end of the RDF feed header.

rdf_item

Fires at the end of each RDF feed item.

rss_tag_pre

This action is documented in wp-includes/feed-rss2.php

1 argument