final public function remove_hook($tag, $function_to_remove, $priority = 10)
    {
        if (\is_string($function_to_remove) && \is_callable([$this, $function_to_remove])) {
            $function_to_remove = [$this, $function_to_remove];
        }

        if (\is_array($tag)) {
            foreach ($tag as $hook) {
                remove_filter($hook, $function_to_remove, $priority);
            }
        } else {
            remove_filter($tag, $function_to_remove, $priority);
        }
    }
final public function remove_hook($tag, $function_to_remove, $priority = 10)
    {
        if (\is_string($function_to_remove) && \is_callable([$this, $function_to_remove])) {
            $function_to_remove = [$this, $function_to_remove];
        }

        if (\is_array($tag)) {
            foreach ($tag as $hook) {
                remove_filter($hook, $function_to_remove, $priority);
            }
        } else {
            remove_filter($tag, $function_to_remove, $priority);
        }
    }
final public function remove_hook ( $ tag , $ function_to_remove , $ priority = 10 ) { if ( \ is_string ( $ function_to_remove ) && \ is_callable ( [ $ this , $ function_to_remove ] ) ) { $ function_to_remove = [ $ this , $ function_to_remove ] ; } if ( \ is_array ( $ tag ) ) { foreach ( $ tag as $ hook ) { remove_filter ( $ hook , $ function_to_remove , $ priority ) ; } } else { remove_filter ( $ tag , $ function_to_remove , $ priority ) ; } }
Removes a the given callback from a specific hook.

@since  1.0.0

@param  string|array $tag                The hook(s) to remove the callback from.
@param  callable     $function_to_remove The callback to remove.
@param  integer      $priority           Optional. The priority of the callback to remove. Defaults to 10.
Removes a the given callback from a specific hook .