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 1 to 50 of 240 actions (Page 1 of 5)
pre_trackback_post

Fires before the trackback is added to a post.

6 arguments
trackback_post

Fires after a trackback is added to a post.

1 argument
cron_reschedule_event_error

Fires if an error happens when rescheduling a cron event.

3 arguments
cron_unschedule_event_error

Fires if an error happens when unscheduling a cron event.

3 arguments
{$hook}

Fires scheduled events.

1 argument
activate_header

Fires before the Site Activation page is loaded.

xmlrpc_rsd_apis

Fires when adding APIs to the Really Simple Discovery (RSD) endpoint.

opml_head

Fires in the OPML header.

wp-mail.php

Fires to allow a plugin to do a complete takeover of Post by Email.

publish_phone

Fires after a post submitted by email is published.

1 argument
mu_plugin_loaded

Fires once a single must-use plugin has loaded.

1 argument
network_plugin_loaded

Fires once a single network-activated plugin has loaded.

1 argument
muplugins_loaded

Fires once all must-use and network-activated plugins have loaded.

plugin_loaded

Fires once a single activated plugin has loaded.

1 argument
plugins_loaded

Fires once activated plugins have loaded. Pluggable functions are also available at this point in the loading order.

sanitize_comment_cookies

Fires when comment cookies are sanitized.

setup_theme

Fires before the theme is loaded.

after_setup_theme

Fires after the theme is loaded.

init

Fires after WordPress has finished loading but before any headers are sent. Most of WP is loaded at this stage, and the user is authenticated. WP continues to load on the {@see 'init'} hook that follows (e.g. widgets), and many plugins instantiate themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.). If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below.

wp_loaded

This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated. Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for users not logged in.

set_comment_cookies

Fires after comment cookies are set.

3 arguments
update-custom_{$action}

Fires when a custom plugin or theme update request is received. The dynamic portion of the hook name, `$action`, refers to the action provided in the request for wp-admin/update.php. Can be used to provide custom update functionality for themes and plugins.

admin_enqueue_scripts

Fires when enqueuing scripts for all admin pages.

1 argument
admin_print_styles-{$hook_suffix}

Fires when styles are printed for a specific admin page based on $hook_suffix.

admin_print_styles

Fires when styles are printed for all admin pages.

admin_print_scripts-{$hook_suffix}

Fires when scripts are printed for a specific admin page based on $hook_suffix.

admin_print_scripts

Fires when scripts are printed for all admin pages.

admin_head-{$hook_suffix}

Fires in head section for a specific admin page. The dynamic portion of the hook name, `$hook_suffix`, refers to the hook suffix for the admin page.

admin_head

Fires in head section for all admin pages.

in_admin_header

Fires at the beginning of the content section in an admin page.

network_admin_notices

Prints network admin screen notices.

user_admin_notices

Prints user admin screen notices.

admin_notices

Prints admin screen notices.

all_admin_notices

Prints generic admin screen notices.

in_admin_footer

Fires after the opening tag for the admin footer.

admin_footer

Prints scripts or data before the default footer scripts.

1 argument
admin_print_footer_scripts-{$hook_suffix}

Prints scripts and data queued for the footer. The dynamic portion of the hook name, `$hook_suffix`, refers to the global hook suffix of the current page.

admin_print_footer_scripts

Prints any scripts and data queued for the footer.

admin_footer-{$hook_suffix}

Prints scripts or data after the default footer scripts. The dynamic portion of the hook name, `$hook_suffix`, refers to the global hook suffix of the current page.

import_filters

Fires at the end of the Import screen.

post_edit_form_tag

Fires inside the post editor form tag.

1 argument
edit_form_top

Fires at the beginning of the edit form. At this point, the required hidden fields and nonces have already been output.

1 argument
edit_form_before_permalink

Fires before the permalink field in the edit form.

1 argument
edit_form_after_title

Fires after the title field.

1 argument
edit_form_after_editor

Fires after the content editor.

1 argument
submitpage_box

Fires before meta boxes with 'side' context are output for the 'page' post type. The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.

1 argument
submitpost_box

Fires before meta boxes with 'side' context are output for all post types other than 'page'. The submitpost box is a meta box with 'side' context, so this hook fires just before it is output.

1 argument
edit_page_form

Fires after 'normal' context meta boxes have been output for the 'page' post type.

1 argument
edit_form_advanced

Fires after 'normal' context meta boxes have been output for all post types other than 'page'.

1 argument
dbx_post_sidebar

Fires after all meta box sections have been output, before the closing #post-body div.

1 argument