framework/Base/Plugin.php
protected function add_actions() {
        do_action('app_before_actions');
		$actionMethos = $this->getMethods("/^action_/");
		sort($actionMethos); //Se ordenas las acciones por prioridad
		$actions = array_map(array($this, 'describeActions'), $actionMethos);
		if ($actions) {
            foreach ($actions as $action) {
                add_action($action->tag, array($this, $action->method), $act->priority, 1);
            }
            do_action('app_after_textdomain');
		}
	}
protected function add_actions() {
        do_action('app_before_actions');
		$actionMethos = $this->getMethods("/^action_/");
		sort($actionMethos); //Se ordenas las acciones por prioridad
		$actions = array_map(array($this, 'describeActions'), $actionMethos);
		if ($actions) {
            foreach ($actions as $action) {
                add_action($action->tag, array($this, $action->method), $act->priority, 1);
            }
            do_action('app_after_textdomain');
		}
	}
protected function add_actions ( ) { do_action ( 'app_before_actions' ) ; $ actionMethos = $ this -> getMethods ( "/^action_/" ) ; sort ( $ actionMethos ) ; //Se ordenas las acciones por prioridad $ actions = array_map ( array ( $ this , 'describeActions' ) , $ actionMethos ) ; if ( $ actions ) { foreach ( $ actions as $ action ) { add_action ( $ action -> tag , array ( $ this , $ action -> method ) , $ act -> priority , 1 ) ; } do_action ( 'app_after_textdomain' ) ; } }
Registra las acciones para los metodos definidos en el plugin
Registra las acciones para los metodos definidos en el plugin