WC_Coupon_Data_Store_CPT::get_tentative_usage_count()
Returns tentative usage count for coupon.
Метод класса: WC_Coupon_Data_Store_CPT{}
Хуков нет.
Возвращает
int
. Tentative usage count.
Использование
$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) (обязательный)
- Coupon ID.
Код WC_Coupon_Data_Store_CPT::get_tentative_usage_count() WC Coupon Data Store CPT::get tentative usage count WC 8.7.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 ) ); }