

: bool Check if the key is an internal one. : string Prefix for action and filter hooks on data.

: bool Filter null meta values from array. : mixed When invalid data is found, throw an exception unless reading from the DB.
MIXED IN KEY PROMO CODE UPDATE
: mixed Update meta data by key or ID, if provided. : mixed Set which users have used this coupon. : mixed Set the amount of times this coupon can be used per user. : mixed Set the amount of times this coupon can be used. : mixed Set how many times this coupon has been used. : bool| WP_Error Set a collection of props in one go, collect any errors, and return the result. : mixed Set the product IDs this coupon can be used with. : mixed Set the product category IDs this coupon can be used with. : mixed Set usage limit to x number of items. : mixed Set if this coupon can only be used once.
MIXED IN KEY PROMO CODE FREE
: mixed Set if this coupon enables free shipping or not. : mixed Set the product IDs this coupon cannot be used with. : mixed Set the product category IDs this coupon cannot be used with. : mixed Set if this coupon should excluded sale items or not. : mixed Set date_created set_date_expires() : mixed Update Meta Data in the database. : int Save should create or update based on object existence. : mixed Read Meta Data from the database. This function will read those values into our WC_Coupon class. : mixed Developers can programmatically return coupons. This includes meta_id column as well, which is not included by default in WP meta data. : bool See if meta data exists, since get_meta always returns a '' or array(). : bool Check if a coupon is valid for a product. : bool Check if a coupon is valid for the cart. : mixed Increase usage count for current coupon. : bool If the filter is added through the woocommerce_get_shop_coupon_data filter, it's virtual and not in the DB.

: array Get records of all users who have used the current coupon. : int Get coupon usage limit per customer (for a single customer) get_used_by() : array Get product IDs this coupon can apply to. : array Get product categories this coupon can apply to. Different from WP Meta cache key in that meta data cached using this key also contains meta_id column. : string Helper method to compute meta cache key. : int|null Usage limited to certain amount of items get_maximum_amount() : bool Get the "indvidual use" checkbox status. : int Returns the unique ID for this object. : string Map one of the WC_Coupon error codes to an error string. : bool If this coupon grants free shipping or not. : array Returns all "extra" data keys for an object (for sub objects like product types). : array Get product IDs that this coupon should not apply to. : array Get product categories this coupon cannot not apply to. : bool If this coupon should exclude items on sale. : string Returns the error_message string. : array Get emails to check customer usage restrictions. : float Get discount amount for a cart item. : WC_DateTime|null Get date_modified get_description() : WC_DateTime|null Get coupon expiration date. : WC_DateTime|null Get date_created get_date_expires() : array Returns array of expected data keys for this object. : array Returns all data for this object. : string Map one of the WC_Coupon message codes to a message string. : string Map one of the WC_Coupon error codes to a message string. : string Generate cache key from id and group. : bool Check if a coupon excludes sale items. : bool Check if a coupon enables free shipping. : bool Delete an object, set the ID to 0, and return result. : mixed Decrease usage count for current coupon. : mixed Merge changes with data and clear. : bool Check if coupon needs applying before tax. : mixed Converts one of the WC_Coupon message/error codes to a message string and. : mixed Re-run the constructor with the object ID. : array Only store the object ID to avoid serializing the data object instance. Legacy properties which could be accessed directly in the past. : bool Magic _isset method for backwards compatibility. : mixed Magic _get method for backwards compatibility. : mixed When the object is cloned, make sure meta is duplicated correctly. : string This is the name of this object type. : bool This is false until the object is read from the DB. : array Set to _data on construct so we can track and reset data if needed. : object Contains a reference to the data store for this class. : array Core data changes for this object. = 115 E_WC_COUPON_USAGE_LIMIT_COUPON_STUCK_GUEST = 111 E_WC_COUPON_USAGE_LIMIT_COUPON_STUCK = 112 E_WC_COUPON_MIN_SPEND_LIMIT_NOT_MET = 103 E_WC_COUPON_ALREADY_APPLIED_INDIV_USE_ONLY
