WordPress at Your Fingertips
function is not described

WC_Product_Data_Store_Interface::get_on_sale_products() public WC 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.

{} It's a 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();

Code of WC_Product_Data_Store_Interface::get_on_sale_products() WC 5.7.1

public function get_on_sale_products();