WC_Product_Data_Store_CPT::get_products()publicWC 1.0

Returns an array of products.

Method of the class: WC_Product_Data_Store_CPT{}

No Hooks.

Return

Array|Object.

Usage

$WC_Product_Data_Store_CPT = new WC_Product_Data_Store_CPT();
$WC_Product_Data_Store_CPT->get_products( $args );
$args(array)
Args to pass to WC_Product_Query().
Default: array()

Notes

WC_Product_Data_Store_CPT::get_products() code WC 9.4.2

public function get_products( $args = array() ) {
	$query = new WC_Product_Query( $args );
	return $query->get_products();
}