ActionScheduler_DBLogger::get_entry()
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() ActionScheduler DBLogger::get entry WC 9.3.3
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 ); }