ActionScheduler_WPCLI_QueueRunner::before_execute
Handle WP CLI message when the action is starting.
Method of the class: ActionScheduler_WPCLI_QueueRunner{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$ActionScheduler_WPCLI_QueueRunner = new ActionScheduler_WPCLI_QueueRunner(); $ActionScheduler_WPCLI_QueueRunner->before_execute( $action_id );
- $action_id(int) (required)
- Action ID.
ActionScheduler_WPCLI_QueueRunner::before_execute() ActionScheduler WPCLI QueueRunner::before execute code WC 9.9.5
public function before_execute( $action_id ) { /* translators: %s refers to the action ID */ WP_CLI::log( sprintf( __( 'Started processing action %s', 'woocommerce' ), $action_id ) ); }