ActionScheduler_WPCLI_Scheduler_command::print_total_actions
Print WP CLI message about how many actions are about to be processed.
Method of the class: ActionScheduler_WPCLI_Scheduler_command{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->print_total_actions( $total );
- $total(int) (required)
- Number of actions found.
ActionScheduler_WPCLI_Scheduler_command::print_total_actions() ActionScheduler WPCLI Scheduler command::print total actions code WC 10.8.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
)
);
}