current_filter()
Retrieve the name of the current filter or action.
Description #Description
Return #Return
(string) Hook name of the current filter or action.
Source #Source
File: wp-includes/plugin.php
function current_filter() { global $wp_current_filter; return end( $wp_current_filter ); }
Expand full source code Collapse full source code View on Trac
Changelog #Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Related #Related
Used By #Used By
Used By | Description |
---|---|
wp-admin/includes/class-language-pack-upgrader.php: Language_Pack_Upgrader::bulk_upgrade() |
Bulk upgrade language packs. |
wp-admin/includes/plugin-install.php: display_plugins_table() |
Display plugin content based on plugin list. |
wp-includes/formatting.php: capital_P_dangit() |
Forever eliminate “Wordpress” from the planet (or at least the little bit we can influence). |
wp-includes/formatting.php: _make_url_clickable_cb() |
Callback to convert URI match to HTML A element. |
wp-includes/formatting.php: _make_web_ftp_clickable_cb() |
Callback to convert URL match to HTML A element. |
wp-includes/general-template.php: get_the_generator() |
Creates the generator XML or Comment for RSS, ATOM, etc. |
wp-includes/kses.php: wp_kses_data() |
Sanitize content with allowed HTML KSES rules. |
wp-includes/kses.php: wp_filter_kses() |
Sanitize content with allowed HTML KSES rules. |
wp-includes/query.php: is_main_query() |
Determines whether the query is the main query. |
wp-includes/functions.wp-scripts.php: wp_deregister_script() |
Remove a registered script. |
wp-includes/update.php: wp_update_plugins() |
Check plugin versions against the latest versions hosted on WordPress.org. |
wp-includes/update.php: wp_update_themes() |
Check theme versions against the latest versions hosted on WordPress.org. |
wp-includes/plugin.php: current_action() |
Retrieve the name of the current action. |
wp-includes/class-wp-customize-widgets.php: WP_Customize_Widgets::capture_filter_pre_get_option() |
Pre-filters captured option values before retrieving. |
User Contributed Notes #User Contributed Notes
You must log in before being able to contribute a note or feedback.
Get the current filter
Get the current action