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.9.8.1

apply_filters('woocommerce_product_object_query_args') is found 1 times:

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

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

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

    73
    74
    75
    76
    77
    78
    79
    80
    81
         *
         * @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 );
        }
    }