Codex tools: Log in
Contents |
Check if any filter has been registered for a hook.
<?php has_filter( $tag, $function_to_check ); ?>
<?php
if ( ! has_filter( 'the_content', 'example_alter_the_content' ) )
add_filter( 'the_content', 'prefix_alter_the_content' );
?>
$wp_filter that stores all of the filters
has_filter() is located in wp-includes/plugin.php.
Filters: has_filter(), add_filter(), apply_filters(), current_filter(), merge_filters(), remove_filter(), remove_all_filters()