Action_Scheduler\WP_CLI\Action

Delete_Command::__construct()publicWC 1.0

Construct.

Method of the class: Delete_Command{}

No Hooks.

Return

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() code WC 9.8.1

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' ) );
}