ActionScheduler_ListTable::get_log_entry_html
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) (обязательный)
- Log entry object.
- $timezone(DateTimezone) (обязательный)
- Timestamp.
Код ActionScheduler_ListTable::get_log_entry_html() ActionScheduler ListTable::get log entry html WC 10.3.4
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() ) );
}