woocommerce_api_product_response

woocommerce_api_product_response

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_product_response') is found 3 times:

  • /includes/legacy/api/v1/class-wc-api-products.php line 127
    		if ( $product->is_type( 'variation' ) ) {
    			$product_data['parent'] = $this->get_product_data( $product->get_parent_id() );
    		}
    
    		return array( 'product' => apply_filters( 'woocommerce_api_product_response', $product_data, $product, $fields, $this->server ) );
    	}
    
    	/**
    	 * Get the total number of orders
    	 *
    	 * @since 2.1
    
  • /includes/legacy/api/v2/class-wc-api-products.php line 169
    			$_product = wc_get_product( $product->get_parent_id() );
    			$product_data['parent'] = $this->get_product_data( $_product );
    		}
    
    		return array( 'product' => apply_filters( 'woocommerce_api_product_response', $product_data, $product, $fields, $this->server ) );
    	}
    
    	/**
    	 * Get the total number of products
    	 *
    	 * @since 2.1
    
  • /includes/legacy/api/v3/class-wc-api-products.php line 218
    				$product_data['parent'] = $this->get_product_data( $_product );
    			}
    		}
    
    		return array( 'product' => apply_filters( 'woocommerce_api_product_response', $product_data, $product, $fields, $this->server ) );
    	}
    
    	/**
    	 * Get the total number of products
    	 *
    	 * @since 2.1
    

See this hook used in plugins: