Action_Scheduler\WP_CLI\Action
Delete_Command::__construct
Construct.
Метод класса: Delete_Command{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Delete_Command = new Delete_Command(); $Delete_Command->__construct( $args, $assoc_args );
- $args(string[]) (обязательный)
- Positional arguments.
- $assoc_args(array<string, string>) (обязательный)
- Keyed arguments.
Код Delete_Command::__construct() Delete Command:: construct WC 11.2.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_deleted_action', array( $this, 'on_action_deleted' ) );
}