Used By
Used By | Description |
---|---|
wp-admin/includes/class-language-pack-upgrader.php: Language_Pack_Upgrader::bulk_upgrade() | Bulk upgrade language packs. |
wp-includes/plugin.php: remove_all_actions() | Remove all of the hooks from an action. |
Remove all of the hooks from a filter.
(string) (Required) The filter to remove hooks from.
(int|bool) (Optional) The priority number to remove.
Default value: false
(true) True when finished.
File: wp-includes/plugin.php
function remove_all_filters( $tag, $priority = false ) { global $wp_filter; if ( isset( $wp_filter[ $tag ] ) ) { $wp_filter[ $tag ]->remove_all_filters( $priority ); if ( ! $wp_filter[ $tag ]->has_filters() ) { unset( $wp_filter[ $tag ] ); } } return true; }
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_all_filters