Untitled
public text v1 · immutable public static function act()
{
$args = func_get_args();
$hookname = array_shift($args);
if ( ! isset( self::$hooks['action'][$hookname] ) ) {
return false;
}
foreach ( self::$hooks['action'][$hookname] as $priority ) {
foreach ( $priority as $action ) {
// $action is an array of object reference
// and method name
call_user_func_array( $action, $args );
}
}
}