ActionScheduler_WPCLI_QueueRunner::before_execute()publicWC 1.0

Handle WP CLI message when the action is starting.

Method of the class: ActionScheduler_WPCLI_QueueRunner{}

No Hooks.

Return

null. Nothing (null).

Usage

$ActionScheduler_WPCLI_QueueRunner = new ActionScheduler_WPCLI_QueueRunner();
$ActionScheduler_WPCLI_QueueRunner->before_execute( $action_id );
$action_id (required)
-

ActionScheduler_WPCLI_QueueRunner::before_execute() code WC 8.7.0

public function before_execute( $action_id ) {
	/* translators: %s refers to the action ID */
	WP_CLI::log( sprintf( __( 'Started processing action %s', 'woocommerce' ), $action_id ) );
}