WC_Product_Data_Store_CPT::get_product_id_by_sku()
Method: Return product ID based on SKU.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:1010
Method: Return product ID based on SKU.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:1010
Method: Returns an array of on sale products, as an array of objects with an ID and parent_id present. Example: $return[0]->id, $return[0]->parent_id.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:896
Method: Returns a list of product IDs ( id as key => parent as value) that are featured. Uses get_posts instead of wc_get_products since we want some extra meta queries and ALL products (posts_per_page = -1).
Source: includes/data-stores/class-wc-product-data-store-cpt.php:945
Method: Update visibility terms based on props.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:725
Method: Update attributes which are a mix of terms and meta data.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:771
Method: Update downloads.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:822
Method: Make sure we store the product type and version (to track data changes).
Source: includes/data-stores/class-wc-product-data-store-cpt.php:853
Method: Clear any caches.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:873
Method: Read downloads from post meta.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:490
Method: Helper method that updates all the post meta for a product based on it’s settings in the WC_Product class.
Source: includes/data-stores/class-wc-product-data-store-cpt.php:516