woocommerce_api_tax_class_response

woocommerce_api_tax_class_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_tax_class_response') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-taxes.php line 540
     
    			$classes = WC_Tax::get_tax_classes();
    
    			foreach ( $classes as $class ) {
    				$tax_classes[] = apply_filters( 'woocommerce_api_tax_class_response', array(
    					'slug' => sanitize_title( $class ),
    					'name' => $class,
    				), $class, $fields, $this );
    			}
    
    			return array( 'tax_classes' => apply_filters( 'woocommerce_api_tax_classes_response', $tax_classes, $classes, $fields, $this ) );