woocommerce_rest_prepare_tax

woocommerce_rest_prepare_tax

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

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
    		 * @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
    		 * @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.