woocommerce_analytics_products_query_args

woocommerce_analytics_products_query_args

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('woocommerce_analytics_products_query_args') is found 1 times:

  • /src/Admin/API/Reports/Products/Query.php line 53
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
         */
        public function get_data() {
            wc_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '9.3.0', '`GenericQuery`, `\WC_Object_Query`, or direct `DataStore` use' );
     
            $args = apply_filters( 'woocommerce_analytics_products_query_args', $this->get_query_vars() );
     
            $data_store = \WC_Data_Store::load( 'report-products' );
            $results    = $data_store->get_data( $args );
            return apply_filters( 'woocommerce_analytics_products_select_query', $results, $args );
        }
    }