WordPress at Your Fingertips
function is not described

ActionScheduler_DBStore::generate_claim_id() protected WC 1.0

Generate a new action claim.

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

No Hooks.

Return

Int. Claim ID.

Usage

// protected - for code of main (parent) or child class
$result = $this->generate_claim_id();

Code of ActionScheduler_DBStore::generate_claim_id() WC 6.1.1

protected function generate_claim_id() {
	/** @var \wpdb $wpdb */
	global $wpdb;
	$now = as_get_datetime_object();
	$wpdb->insert( $wpdb->actionscheduler_claims, array( 'date_created_gmt' => $now->format( 'Y-m-d H:i:s' ) ) );

	return $wpdb->insert_id;
}