ActionScheduler_WPCLI_QueueRunner::before_execute()publicWC 1.0

Handle WP CLI message when the action is starting.

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

Хуков нет.

Возвращает

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

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

$ActionScheduler_WPCLI_QueueRunner = new ActionScheduler_WPCLI_QueueRunner();
$ActionScheduler_WPCLI_QueueRunner->before_execute( $action_id );
$action_id (обязательный)
-

Код ActionScheduler_WPCLI_QueueRunner::before_execute() 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 ) );
}