ActionScheduler_WPCLI_Scheduler_command::print_total_actionsprotectedWC 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) (обязательный)
Number of actions found.

Код ActionScheduler_WPCLI_Scheduler_command::print_total_actions() WC 9.9.5

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