Exemplo n.º 1
0
 /**
  * Execute functions hooked on a specific action hook.
  *
  * This function invokes all functions attached to action hook $tag. It is
  * possible to create new action hooks by simply calling this function,
  * specifying the name of the new hook using the <tt>$tag</tt> parameter.
  *
  * You can pass extra arguments to the hooks, much like you can with
  * applyFilters().
  *
  * @see   applyFilters() This function works similar with the exception that
  * nothing is returned and only the functions or methods are called.
  *
  * @param string $tag     The name of the action to be executed.
  * @param mixed  $arg,... Optional additional arguments which are passed on to the functions hooked to the action.
  *
  * @return null Will return null if $tag does not exist in $wp_filter array
  */
 public function doAction($tag, $arg = '')
 {
     return HuradHook::do_action($tag, $arg);
 }