woocommerce_product_object_query_args

woocommerce_product_object_query_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_product_object_query_args') is found 1 times:

  • /includes/class-wc-product-query.php line 75

    Warning: Undefined array key 79 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 80 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    	 *
    	 * @return array|object of WC_Product objects
    	 */
    	public function get_products() {
    		$args    = apply_filters( 'woocommerce_product_object_query_args', $this->get_query_vars() );
    		$results = WC_Data_Store::load( 'product' )->query( $args );
    		return apply_filters( 'woocommerce_product_object_query', $results, $args );
    	}
    }