WordPress at Your Fingertips
function is not described

WC_Coupon_Data_Store_CPT::get_tentative_usage_count() public WC 1.0

Returns tentative usage count for coupon.

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

No Hooks.

Return

Int. Tentative usage count.

Usage

$WC_Coupon_Data_Store_CPT = new WC_Coupon_Data_Store_CPT();
$WC_Coupon_Data_Store_CPT->get_tentative_usage_count( $coupon_id );
$coupon_id(int) (required)
Coupon ID.

Code of WC_Coupon_Data_Store_CPT::get_tentative_usage_count() WC 5.6.0

public function get_tentative_usage_count( $coupon_id ) {
	global $wpdb;
	return $wpdb->get_var(
		// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
		$this->get_tentative_usage_query( $coupon_id )
	);
}