ActionScheduler_WPCLI_Scheduler_command::print_total_actions
Print WP CLI message about how many actions are about to be processed.
Метод класса: ActionScheduler_WPCLI_Scheduler_command{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->print_total_actions( $total );
- $total(int) (обязательный)
- Number of actions found.
Код ActionScheduler_WPCLI_Scheduler_command::print_total_actions() ActionScheduler WPCLI Scheduler command::print total actions WC 11.0.1
protected function print_total_actions( $total ) {
WP_CLI::log(
sprintf(
/* translators: %d refers to how many scheduled tasks were found to run */
_n( 'Found %d scheduled task', 'Found %d scheduled tasks', $total, 'woocommerce' ),
$total
)
);
}