src/WordPress/RemoveWpHookCapableTrait.php
protected function _removeWpHook($name, callable $handler, $priority = null)
    {
        $name = $this->_normalizeString($name);

        $priority = ($priority === null)
            ? $this->_getWpHookDefaultPriority()
            : $this->_normalizeInt($priority);

        \remove_filter($name, $handler, $priority);
    }
protected function _removeWpHook($name, callable $handler, $priority = null)
    {
        $name = $this->_normalizeString($name);

        $priority = ($priority === null)
            ? $this->_getWpHookDefaultPriority()
            : $this->_normalizeInt($priority);

        \remove_filter($name, $handler, $priority);
    }
Removes a hook handler from a WordPress event.

@since [*next-version*]

@param string|Stringable $name     The hook name.
@param callable          $handler  The hook handler callback.
@param int|null          $priority The priority of the hook - larger numbers signify later execution.