: string Generate query to calculate tentative usages for the coupon. : int Get held time for resources before cancelling the order. : mixed Helper function to add a `_used_by` record to track coupons used by the user. : bool Update meta data in, or delete it from, the database. : null Update a lookup table for an object. : int|null Converts a WP post date string into a timestamp. This is inĪddition to all data props with _ prefix. : string Internal meta keys we don't want exposed as part of meta_data. : array Get valid WP_Query args from a WC_Object_Query's query variables. : array Check if the terms are suitable for searching. : array Get and store terms from a taxonomy. : array Retrieve stopwords used when parsing search terms. Or if they are present in the database or not. : array Gets a list of props and meta keys that need updated based on change state : string Get primary key name for lookup table. : array Table structure is slightly different between meta types, this function will return what we need to know. : array Get data to save to a lookup table. : bool Callback to remove unwanted meta data. : mixed Updates a coupon in the database. : array Returns an array of meta for an object. : array Map a valid date query var to WP_Query arguments. : int Increase usage count for current coupon. : int Get the number of uses for a coupon by user ID. : int Get the number of uses for a coupon by email address get_usage_by_user_id() : string|null Get tentative coupon usages for user. : int Returns tentative usage count for coupon. : array Return list of internal meta keys. : array Return an array of IDs for for a specific coupon code. : string Return a coupon code for a specific ID. : mixed|void Helper method to filter internal meta keys from all meta data rows for the object. : mixed Delete lookup table data for an ID. : bool Deletes a coupon from the database. : int Decrease usage count for current coupon. : mixed Method to create a new coupon in the database. Returns early if there is no limit per user for the coupon. : null|false|int Check and records coupon usage tentatively for passed user aliases for short period of time so that counts validation is correct. Returns early if there is no limit defined for the coupon. : bool|int|string|null Check and records coupon usage tentatively for short period of time so that counts validation is correct. : array The updated coupon properties add_meta() : string This only needs set if you are using a custom metadata type (for example payment tokens. : array Meta data which should exist in the DB, even if empty. : string Internal meta type used to store coupon data. : array Data stored in meta keys, but not considered "meta" for a coupon. WC_Coupon_Data_Store_Interface WC Coupon Data Store Interface WC_Object_Data_Store_Interface WC Data Store Interface WC_Coupon_Data_Store_Interface, WC_Object_Data_Store_Interface includes/data-stores/class-wc-coupon-data-store-cpt.php
0 Comments
Leave a Reply. |