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.

Метод класса: WC_Product_Data_Store_Interface{}

Хуков нет.

Возвращает

Массив.

Использование

$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 8.7.0

public function get_on_sale_products();