Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




remove_all_filters [ WordPress Function ]

remove_all_filters ( $tag, $priority = false )
Parameters:
  • (string) $tag The filter to remove hooks from.
  • (int) $priority The priority number to remove.
Returns:
  • (bool) True when finished.
Defined at:



Remove all of the hooks from a filter.

Source


<?php
function remove_all_filters($tag$priority false) {
    global 
$wp_filter$merged_filters;

    if( isset(
$wp_filter[$tag]) ) {
        if( 
false !== $priority && isset($wp_filter[$tag][$priority]) )
            unset(
$wp_filter[$tag][$priority]);
        else
            unset(
$wp_filter[$tag]);
    }

    if( isset(
$merged_filters[$tag]) )
        unset(
$merged_filters[$tag]);

    return 
true;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics