: string Functions for getting parts of a price, in html, used by get_price_html. : string Returns the price in html format. : string Returns the price (excluding tax) - ignores tax_class filters since the price may *include* tax and thus needs subtracting. : string Returns the product's active price. : int Get min quantity which can be purchased at once. 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 Get max quantity which can be purchased at once. : mixed Match a variation to a given set of attributes using a WP_Query. : int Returns the unique ID for this object. : array Returns the gallery attachment ids. : string Get formatted variation data with WC Returns the gallery attachment ids. : string Get product name with SKU or ID. : string Get file download path identified by $download_id. : array|false Get a file by $download_id. : array Returns all "extra" data keys for an object (for sub objects like product types). : string Returns the price including or excluding tax, based on the 'woocommerce_tax_display_shop' setting. : string|array Returns formatted dimensions. : WC_DateTime|null Get date on sale from. : WC_DateTime|null Get product modified date. : WC_DateTime|null Get product created date. : array Returns array of expected data keys for this object. : array Returns all data for this object. : array Returns the cross sell product ids. : array Returns the children IDs if applicable. : WC_Product| WC_Product_variation Returns the child product. : array Returns the availability of the product. : string Returns a single product attribute as a string. : string Generate cache key from id and group. : bool Returns whether or not the product post exists. : bool Returns whether or not we are showing dimensions on the product page. : mixed Delete meta data with a matching value. : bool Delete the product, set its ID to 0, and return result. : bool Does a child have a weight? delete() : bool Does a child have dimensions? child_has_weight() : mixed Check if the stock status needs changing. : bool Returns whether or not the product needs to notify the customer on backorder. : bool Returns whether or not the product can be backordered. : mixed Merge changes with data and clear. : mixed Adjust a products price dynamically. : string Get the add to url used mainly in loops. : string Get the add to cart button text. : string Get the add to cart button text description - used in aria tags. : string Get the aria-describedby description for the add to cart button. : 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 Get the product if ID is passed, otherwise the product is new and empty. : mixed When the object is cloned, make sure meta is duplicated correctly. : array Supported features such as 'ajax_add_to_cart'. : string This is the name of this object type. : bool This is false until the object is read from the DB. However, since DataStore is a not a stored entity in itself, they used to store data in metadata of the data object. : array List of properties that were earlier managed by data store. : 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. The WooCommerce product class handles individual product data. Includes/abstracts/abstract-wc-product.php
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |