WordPress at Your Fingertips
function is not described

ActionScheduler_wpPostStore::get_claim_count() public WC 1.0

Get claim count.

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

No Hooks.

Return

Int.

Usage

$ActionScheduler_wpPostStore = new ActionScheduler_wpPostStore();
$ActionScheduler_wpPostStore->get_claim_count();

Code of ActionScheduler_wpPostStore::get_claim_count() WC 6.1.0

public function get_claim_count() {
	global $wpdb;

	// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching
	return $wpdb->get_var(
		$wpdb->prepare(
			"SELECT COUNT(DISTINCT post_password) FROM {$wpdb->posts} WHERE post_password != '' AND post_type = %s AND post_status IN ('in-progress','pending')",
			array( self::POST_TYPE )
		)
	);
}