ActionScheduler_DBLogger::get_entry()publicWC 1.0

Retrieve an action log entry.

Method of the class: ActionScheduler_DBLogger{}

No Hooks.

Return

ActionScheduler_LogEntry.

Usage

$ActionScheduler_DBLogger = new ActionScheduler_DBLogger();
$ActionScheduler_DBLogger->get_entry( $entry_id );
$entry_id(int) (required)
Log entry ID.

ActionScheduler_DBLogger::get_entry() code WC 7.3.0

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 );
}