WC_Product_Data_Store_CPT::get_products()
Returns an array of products.
Метод класса: WC_Product_Data_Store_CPT{}
Хуков нет.
Возвращает
Массив|Объект
.
Использование
$WC_Product_Data_Store_CPT = new WC_Product_Data_Store_CPT(); $WC_Product_Data_Store_CPT->get_products( $args );
- $args(массив)
- Args to pass to WC_Product_Query().
По умолчанию: array()
Заметки
- Смотрите: wc_get_products
Код WC_Product_Data_Store_CPT::get_products() WC Product Data Store CPT::get products WC 8.7.0
public function get_products( $args = array() ) { $query = new WC_Product_Query( $args ); return $query->get_products(); }