ActionScheduler_WPCLI_QueueRunner::after_execute() public WC 1.0
Handle WP CLI message when the action has completed.
{} It's a method of the class: ActionScheduler_WPCLI_QueueRunner{}
No Hooks.
Return
Null. Nothing.
Usage
$ActionScheduler_WPCLI_QueueRunner = new ActionScheduler_WPCLI_QueueRunner(); $ActionScheduler_WPCLI_QueueRunner->after_execute( $action_id, $action );
- $action_id(int) (required)
- -
- $action(null|ActionScheduler_Action)
- The instance of the action.
Default: null for backward compatibility
Code of ActionScheduler_WPCLI_QueueRunner::after_execute() ActionScheduler WPCLI QueueRunner::after execute WC 5.0.0
public function after_execute( $action_id, $action = null ) {
// backward compatibility
if ( null === $action ) {
$action = $this->store->fetch_action( $action_id );
}
/* translators: 1: action ID 2: hook name */
WP_CLI::log( sprintf( __( 'Completed processing action %1$s with hook: %2$s', 'woocommerce' ), $action_id, $action->get_hook() ) );
}