original_string: public function hasHook($hook)
      {
          $hook = (string) $hook;
  
          return $hook && !empty($this->hooks[$hook]);
      }
code: public function hasHook($hook)
      {
          $hook = (string) $hook;
  
          return $hook && !empty($this->hooks[$hook]);
      }
code_tokens: public function hasHook ( $ hook ) { $ hook = ( string ) $ hook ; return $ hook && ! empty ( $ this -> hooks [ $ hook ] ) ; }
docstring: 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.
docstring_tokens: Do we have a specific hook?