ActionScheduler_ListTable::get_log_entry_html()protectedWC 1.0

Prints the logs entries inline. We do so to avoid loading Javascript and other hacks to show it in a modal.

Метод класса: ActionScheduler_ListTable{}

Хуков нет.

Возвращает

Строку.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_log_entry_html( $log_entry, $timezone );
$log_entry(ActionScheduler_LogEntry) (обязательный)
-
$timezone(DateTimezone) (обязательный)
-

Код ActionScheduler_ListTable::get_log_entry_html() WC 8.7.0

protected function get_log_entry_html( ActionScheduler_LogEntry $log_entry, DateTimezone $timezone ) {
	$date = $log_entry->get_date();
	$date->setTimezone( $timezone );
	return sprintf( '<li><strong>%s</strong><br/>%s</li>', esc_html( $date->format( 'Y-m-d H:i:s O' ) ), esc_html( $log_entry->get_message() ) );
}