WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана

ActionScheduler_wcSystemStatus::get_template() protected WC 1.0

Get oldest or newest scheduled date for a given status.

{} Это метод класса: ActionScheduler_wcSystemStatus{}

Хуков нет.


null. Ничего.


// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_template( $status_labels, $action_counts, $oldest_and_newest );
$status_labels(массив) (обязательный)
Set of statuses to find oldest & newest action for.
$action_counts(массив) (обязательный)
Number of actions grouped by status.
$oldest_and_newest(массив) (обязательный)
Date of the oldest and newest action with each status.

Код ActionScheduler_wcSystemStatus::get_template() WC 5.3.0

protected function get_template( $status_labels, $action_counts, $oldest_and_newest ) {
	$as_version = ActionScheduler_Versions::instance()->latest_version();

	<table class="wc_status_table widefat" cellspacing="0">
				<th colspan="5" data-export-label="Action Scheduler"><h2><?php esc_html_e( 'Action Scheduler', 'woocommerce' ); ?><?php echo wc_help_tip( esc_html__( 'This section shows scheduled action counts.', 'woocommerce' ) ); ?></h2></th>
				<td colspan="2" data-export-label="Version"><?php esc_html_e( 'Version:', 'woocommerce' ); ?></td>
				<td colspan="3"><?php echo esc_html( $as_version ); ?></td>
				<td><strong><?php esc_html_e( 'Action Status', 'woocommerce' ); ?></strong></td>
				<td class="help">&nbsp;</td>
				<td><strong><?php esc_html_e( 'Count', 'woocommerce' ); ?></strong></td>
				<td><strong><?php esc_html_e( 'Oldest Scheduled Date', 'woocommerce' ); ?></strong></td>
				<td><strong><?php esc_html_e( 'Newest Scheduled Date', 'woocommerce' ); ?></strong></td>
			foreach ( $action_counts as $status => $count ) {
				// WC uses the 3rd column for export, so we need to display more data in that (hidden when viewed as part of the table) and add an empty 2nd column.
					'<tr><td>%1$s</td><td>&nbsp;</td><td>%2$s<span style="display: none;">, Oldest: %3$s, Newest: %4$s</span></td><td>%3$s</td><td>%4$s</td></tr>',
					esc_html( $status_labels[ $status ] ),
					number_format_i18n( $count ),
					$oldest_and_newest[ $status ]['oldest'],
					$oldest_and_newest[ $status ]['newest']