PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
woocommerce
/
includes
/
interfaces
<?php /** * Coupon Data Store Interface * * @version 3.0.0 * @package WooCommerce\Interfaces */ /** * WC Coupon Data Store Interface * * Functions that must be defined by coupon store classes. * * @version 3.0.0 */ interface WC_Coupon_Data_Store_Interface { /** * Increase usage count for current coupon. * * @param WC_Coupon $coupon Coupon object. * @param string $used_by Either user ID or billing email. */ public function increase_usage_count( &$coupon, $used_by = '' ); /** * Decrease usage count for current coupon. * * @param WC_Coupon $coupon Coupon object. * @param string $used_by Either user ID or billing email. */ public function decrease_usage_count( &$coupon, $used_by = '' ); /** * Get the number of uses for a coupon by user ID. * * @param WC_Coupon $coupon Coupon object. * @param int $user_id User ID. * @return int */ public function get_usage_by_user_id( &$coupon, $user_id ); /** * Return a coupon code for a specific ID. * * @param int $id Coupon ID. * @return string Coupon Code. */ public function get_code_by_id( $id ); /** * Return an array of IDs for for a specific coupon code. * Can return multiple to check for existence. * * @param string $code Coupon code. * @return array Array of IDs. */ public function get_ids_by_code( $code ); }
[-] class-wc-order-item-type-data-store-interface.php
[edit]
[-] class-wc-order-data-store-interface.php
[edit]
[-] class-wc-logger-interface.php
[edit]
[-] class-wc-product-variable-data-store-interface.php
[edit]
[+]
..
[-] class-wc-customer-download-data-store-interface.php
[edit]
[-] class-wc-importer-interface.php
[edit]
[-] class-wc-object-data-store-interface.php
[edit]
[-] class-wc-customer-data-store-interface.php
[edit]
[-] class-wc-customer-download-log-data-store-interface.php
[edit]
[-] class-wc-abstract-order-data-store-interface.php
[edit]
[-] class-wc-order-item-product-data-store-interface.php
[edit]
[-] class-wc-payment-token-data-store-interface.php
[edit]
[-] class-wc-queue-interface.php
[edit]
[-] class-wc-webhooks-data-store-interface.php
[edit]
[-] class-wc-coupon-data-store-interface.php
[edit]
[-] class-wc-order-refund-data-store-interface.php
[edit]
[-] class-wc-product-data-store-interface.php
[edit]
[-] class-wc-log-handler-interface.php
[edit]
[-] class-wc-order-item-data-store-interface.php
[edit]
[-] class-wc-shipping-zone-data-store-interface.php
[edit]