WordPress at Your Fingertips
function is not described

ActionScheduler_DBLogger::get_logs() public WC 1.0

Retrieve the an action's log entries from the database.

{} It's a method of the class: ActionScheduler_DBLogger{}

No Hooks.

Return

ActionScheduler_LogEntry[].

Usage

$ActionScheduler_DBLogger = new ActionScheduler_DBLogger();
$ActionScheduler_DBLogger->get_logs( $action_id );
$action_id(int) (required)
Action ID.

Code of ActionScheduler_DBLogger::get_logs() WC 6.1.0

public function get_logs( $action_id ) {
	/** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
	global $wpdb;

	$records = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$wpdb->actionscheduler_logs} WHERE action_id=%d", $action_id ) );

	return array_map( array( $this, 'create_entry_from_db_record' ), $records );
}