/** * put your comment there... * * @param mixed $params */ public function callIndirect($params) { $params = parent::prepareHookParameters($params); // Do Wordpress action! call_user_func_array('do_action', $params); // Return subject object! return $this; }
/** * put your comment there... * * @param mixed $params */ protected function initResultArray($params) { parent::initResultArray($params); // If not filters attached then return passed value! $this->result['return'] = $params[0]; }