WC_Product_Data_Store_CPT::get_products()publicWC 1.0

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_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();
}