WC_Product_Data_Store_Interface::get_featured_product_ids()
Returns a list of product IDs ( id as key => parent as value) that are featured. Uses get_posts instead of wc_get_products since we want some extra meta queries and ALL products (posts_per_page = -1).
Метод класса: WC_Product_Data_Store_Interface{}
Хуков нет.
Возвращает
Массив
.
Использование
$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface(); $WC_Product_Data_Store_Interface->get_featured_product_ids();
Код WC_Product_Data_Store_Interface::get_featured_product_ids() WC Product Data Store Interface::get featured product ids WC 8.7.0
public function get_featured_product_ids();