ActionScheduler_DBLogger::clear_deleted_action_logs()publicWC 1.0

Delete the action logs for an action.

Method of the class: ActionScheduler_DBLogger{}

No Hooks.

Return

null. Nothing.

Usage

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

ActionScheduler_DBLogger::clear_deleted_action_logs() code WC 7.3.0

public function clear_deleted_action_logs( $action_id ) {
	/** @var \wpdb $wpdb */ //phpcs:ignore Generic.Commenting.DocComment.MissingShort
	global $wpdb;
	$wpdb->delete( $wpdb->actionscheduler_logs, array( 'action_id' => $action_id ), array( '%d' ) );
}