woocommerce_rest_prepare_tax

woocommerce_rest_prepare_tax

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_rest_prepare_tax') is found 2 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php line 271
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
         * @param WP_REST_Response $response  The response object.
         * @param stdClass         $tax_class Tax object used to create response.
         * @param WP_REST_Request  $request   Request object.
         */
        return apply_filters( 'woocommerce_rest_prepare_tax', $response, (object) $tax_class, $request );
    }
     
    /**
     * Prepare links for the request.
     *
     * @return array Links for the given tax class.
  • /includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php line 568
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
         * @param WP_REST_Response $response The response object.
         * @param stdClass         $tax      Tax object used to create response.
         * @param WP_REST_Request  $request  Request object.
         */
        return apply_filters( 'woocommerce_rest_prepare_tax', $response, $tax, $request );
    }
     
    /**
     * Prepare links for the request.
     *
     * @param stdClass $tax Tax object.