Uma área de pesquisa sobre o WordPress para devs e autores do tema



remove_all_filters ›

Desde2.7.0
Obsoleton/a
remove_all_filters ( $tag, $priority = false )
Parâmetros: (2)
  • (string) $tag The filter to remove hooks from.
    Required: Yes
  • (int|bool) $priority Optional. The priority number to remove. Default false.
    Required: No
    Padrão: false
Retorna:
  • (true) True when finished.
Definido em:
Codex:

Remove all of the hooks from a filter.



Fonte

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;
}