Action_Scheduler\WP_CLI\Action
Run_Command::__construct
Construct.
Метод класса: Run_Command{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Run_Command = new Run_Command(); $Run_Command->__construct( $args, $assoc_args );
- $args(string[]) (обязательный)
- Positional arguments.
- $assoc_args(массив) (обязательный)
- .
Код Run_Command::__construct() Run Command:: construct WC 10.0.2
public function __construct( array $args, array $assoc_args ) { parent::__construct( $args, $assoc_args ); $this->action_ids = array_map( 'absint', $args ); $this->action_counts['total'] = count( $this->action_ids ); add_action( 'action_scheduler_execution_ignored', array( $this, 'on_action_ignored' ) ); add_action( 'action_scheduler_after_execute', array( $this, 'on_action_executed' ) ); add_action( 'action_scheduler_failed_execution', array( $this, 'on_action_failed' ), 10, 2 ); add_action( 'action_scheduler_failed_validation', array( $this, 'on_action_invalid' ), 10, 2 ); }