WordPress at Your Fingertips
function is not described

WC_Product_Data_Store_CPT::get_products() public WC 1.0

Returns an array of products.

{} It's a 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

Code of WC_Product_Data_Store_CPT::get_products() WC 5.7.0

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