public function hasHook($hook)
    {
        $hook = (string) $hook;

        return $hook && !empty($this->hooks[$hook]);
    }
public function hasHook($hook)
    {
        $hook = (string) $hook;

        return $hook && !empty($this->hooks[$hook]);
    }
public function hasHook ( $ hook ) { $ hook = ( string ) $ hook ; return $ hook && ! empty ( $ this -> hooks [ $ hook ] ) ; }
Do we have a specific hook?

@since 150821 Enhancing hook support.

@param string $hook The name of a filter hook.

@return bool True if actions/filters exist on this hook.
Do we have a specific hook?