On this page
current_filter(): string
Retrieves the name of the current filter hook.
Return
string Hook name of the current filter.
Source
File: wp-includes/plugin.php. View all references
function current_filter() {
global $wp_current_filter;
return end( $wp_current_filter );
}
Related
Used By
| Used By | Description |
|---|---|
| wp_filter_content_tags() wp-includes/media.php | Filters specific tags in post content and modifies their markup. |
| Language_Pack_Upgrader::bulk_upgrade() wp-admin/includes/class-language-pack-upgrader.php | Bulk upgrade language packs. |
| display_plugins_table() wp-admin/includes/plugin-install.php | Displays plugin content based on plugin list. |
| capital_P_dangit() wp-includes/formatting.php | Forever eliminate “Wordpress” from the planet (or at least the little bit we can influence). |
| _make_url_clickable_cb() wp-includes/formatting.php | Callback to convert URI match to HTML A element. |
| _make_web_ftp_clickable_cb() wp-includes/formatting.php | Callback to convert URL match to HTML A element. |
| get_the_generator() wp-includes/general-template.php | Creates the generator XML or Comment for RSS, ATOM, etc. |
| wp_kses_data() wp-includes/kses.php | Sanitize content with allowed HTML KSES rules. |
| wp_filter_kses() wp-includes/kses.php | Sanitize content with allowed HTML KSES rules. |
| is_main_query() wp-includes/query.php | Determines whether the query is the main query. |
| wp_deregister_script() wp-includes/functions.wp-scripts.php | Remove a registered script. |
| wp_update_plugins() wp-includes/update.php | Checks for available updates to plugins based on the latest versions hosted on WordPress.org. |
| wp_update_themes() wp-includes/update.php | Checks for available updates to themes based on the latest versions hosted on WordPress.org. |
| current_action() wp-includes/plugin.php | Retrieves the name of the current action hook. |
| WP_Customize_Widgets::capture_filter_pre_get_option() wp-includes/class-wp-customize-widgets.php | Pre-filters captured option values before retrieving. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/current_filter