ActionScheduler_WPCLI_QueueRunner::after_execute()publicWC 1.0

Handle WP CLI message when the action has completed.

Метод класса: ActionScheduler_WPCLI_QueueRunner{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ActionScheduler_WPCLI_QueueRunner = new ActionScheduler_WPCLI_QueueRunner();
$ActionScheduler_WPCLI_QueueRunner->after_execute( $action_id, $action );
$action_id(int) (обязательный)
-
$action(null|ActionScheduler_Action)
The instance of the action.
По умолчанию: null for backward compatibility

Код ActionScheduler_WPCLI_QueueRunner::after_execute() WC 8.7.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() ) );
}