WC_Product_Data_Store_Interface::get_on_sale_products()
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.
Method of the class: WC_Product_Data_Store_Interface{}
No Hooks.
Return
Array
.
Usage
$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface(); $WC_Product_Data_Store_Interface->get_on_sale_products();
WC_Product_Data_Store_Interface::get_on_sale_products() WC Product Data Store Interface::get on sale products code WC 9.4.2
public function get_on_sale_products();