src/Hook.php
public function hasCalled($hookName) : int
    {
        $hookName = $this->sanitizeKeyName($hookName);
        if (!$hookName || ! isset($this->actions[$hookName])) {
            return 0;
        }

        return $this->actions[$hookName];
    }
public function hasCalled($hookName) : int
    {
        $hookName = $this->sanitizeKeyName($hookName);
        if (!$hookName || ! isset($this->actions[$hookName])) {
            return 0;
        }

        return $this->actions[$hookName];
    }
public function hasCalled ( $ hookName ) : int { $ hookName = $ this -> sanitizeKeyName ( $ hookName ) ; if ( ! $ hookName || ! isset ( $ this -> actions [ $ hookName ] ) ) { return 0 ; } return $ this -> actions [ $ hookName ] ; }
Check if action hook as execute

@param string $hookName Hook Name

@return integer Count of hook action if has did action
Check if action hook as execute