} } /** * __call_all_hook * @access public * @since 0.1 * @param (array) $args [description] */ public function __call_all_hook($args) { reset($this->filters['all']); do { foreach ((array) current($this->filters['all']) as $the_) { if (!is_null($the_['function'])) { call_user_func_array($the_['function'], $args); } } } while (next($this->filters['all']) !== false); } } //end class } //end if global $hooks; $hooks = new Hooks(); $hooks->do_action('After_Hooks_Setup', $hooks); function hooks() { global $hooks; return $hooks; }