WC_Product_Data_Store_Interface::get_on_sale_products()publicWC 1.0

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() code WC 9.4.2

public function get_on_sale_products();