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.
Метод класса: 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 Product Data Store Interface::get on sale products WC 9.8.1
public function get_on_sale_products();