src/Hook/Hook.php
public function remove($hook, $callback = null, $priority = 10)
    {
        // If $callback is null, it means we have chained the methods to
        // the action/filter instance. If the instance has no callback, return false.
        if (is_null($callback)) {
            if (! $callback = $this->getCallback($hook)) {
                return false;
            }

            list($callback, $priority, $accepted_args) = $callback;

            // Unset the hook.
            unset($this->hooks[$hook]);
        }

        $this->removeAction($hook, $callback, $priority);

        return $this;
    }
public function remove($hook, $callback = null, $priority = 10)
    {
        // If $callback is null, it means we have chained the methods to
        // the action/filter instance. If the instance has no callback, return false.
        if (is_null($callback)) {
            if (! $callback = $this->getCallback($hook)) {
                return false;
            }

            list($callback, $priority, $accepted_args) = $callback;

            // Unset the hook.
            unset($this->hooks[$hook]);
        }

        $this->removeAction($hook, $callback, $priority);

        return $this;
    }
public function remove ( $ hook , $ callback = null , $ priority = 10 ) { // If $callback is null, it means we have chained the methods to // the action/filter instance. If the instance has no callback, return false. if ( is_null ( $ callback ) ) { if ( ! $ callback = $ this -> getCallback ( $ hook ) ) { return false ; } list ( $ callback , $ priority , $ accepted_args ) = $ callback ; // Unset the hook. unset ( $ this -> hooks [ $ hook ] ) ; } $ this -> removeAction ( $ hook , $ callback , $ priority ) ; return $ this ; }
Remove a registered action or filter.

@param string          $hook
@param \Closure|string $callback
@param int             $priority

@return mixed The Hook instance or false.
Remove a registered action or filter .