woocommerce_api_product_category_response

woocommerce_api_product_category_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_product_category_response') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-products.php line 629
    				'image'       => $image ? esc_url( $image ) : '',
    				'count'       => intval( $term->count ),
    			);
    
    			return array( 'product_category' => apply_filters( 'woocommerce_api_product_category_response', $product_category, $id, $fields, $term, $this ) );
    		} catch ( WC_API_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
    		}
    	}
    
    	/**
    
  • /includes/legacy/api/v3/class-wc-api-products.php line 688
    				'image'       => $image ? esc_url( $image ) : '',
    				'count'       => intval( $term->count ),
    			);
    
    			return array( 'product_category' => apply_filters( 'woocommerce_api_product_category_response', $product_category, $id, $fields, $term, $this ) );
    		} catch ( WC_API_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
    		}
    	}
    
    	/**