ActionScheduler_WPCLI_Scheduler_command::print_total_actions()protectedWC 1.0

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) (обязательный)
-

Код ActionScheduler_WPCLI_Scheduler_command::print_total_actions() WC 8.7.0

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
		)
	);
}