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
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
                '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
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
                '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() ) );
        }
    }
     
    /**