woocommerce_rest_tax_query

woocommerce_rest_tax_query

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_rest_tax_query') is found 2 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php line 235
    		 *
    		 * @param array           $prepared_args Array of arguments for $wpdb->get_results().
    		 * @param WP_REST_Request $request       The current request.
    		 */
    		$prepared_args = apply_filters( 'woocommerce_rest_tax_query', $prepared_args, $request );
    
    		$orderby = sanitize_key( $prepared_args['orderby'] ) . ' ' . sanitize_key( $prepared_args['order'] );
    		$query   = "
    			SELECT *
    			FROM {$wpdb->prefix}woocommerce_tax_rates
    			%s
    
  • /src/Admin/API/Taxes.php line 83
    		 *
    		 * @param array           $prepared_args Array of arguments for $wpdb->get_results().
    		 * @param WP_REST_Request $request       The current request.
    		 */
    		$prepared_args = apply_filters( 'woocommerce_rest_tax_query', $prepared_args, $request );
    
    		$query = "
    			SELECT *
    			FROM {$wpdb->prefix}woocommerce_tax_rates
    			WHERE 1 = 1
    		";