ActionScheduler_WPCLI_QueueRunner::before_execute()
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(int) (обязательный)
- Action ID.
Код ActionScheduler_WPCLI_QueueRunner::before_execute() ActionScheduler WPCLI QueueRunner::before execute WC 9.4.2
public function before_execute( $action_id ) { /* translators: %s refers to the action ID */ WP_CLI::log( sprintf( __( 'Started processing action %s', 'woocommerce' ), $action_id ) ); }