Action_Scheduler\WP_CLI\Action
Delete_Command::__construct
Construct.
Method of the class: Delete_Command{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Delete_Command = new Delete_Command(); $Delete_Command->__construct( $args, $assoc_args );
- $args(string[]) (required)
- Positional arguments.
- $assoc_args(array) (required)
- .
Delete_Command::__construct() Delete Command:: construct code WC 10.3.5
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' ) );
}