ActionScheduler_WPCLI_QueueRunner::before_execute()
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() ActionScheduler WPCLI QueueRunner::before execute code WC 9.2.3
public function before_execute( $action_id ) { /* translators: %s refers to the action ID */ WP_CLI::log( sprintf( __( 'Started processing action %s', 'woocommerce' ), $action_id ) ); }