WC_Product_Data_Store_CPT::get_products()
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
- See: wc_get_products
WC_Product_Data_Store_CPT::get_products() 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(); }