ActionScheduler_DBLogger::get_entry()publicWC 1.0

Retrieve an action log entry.

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

Хуков нет.

Возвращает

ActionScheduler_LogEntry.

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

$ActionScheduler_DBLogger = new ActionScheduler_DBLogger();
$ActionScheduler_DBLogger->get_entry( $entry_id );
$entry_id(int) (обязательный)
Log entry ID.

Код ActionScheduler_DBLogger::get_entry() WC 6.9.4

public function get_entry( $entry_id ) {
	/** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
	global $wpdb;
	$entry = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->actionscheduler_logs} WHERE log_id=%d", $entry_id ) );

	return $this->create_entry_from_db_record( $entry );
}