woocommerce_api_product_attribute_response

woocommerce_api_product_attribute_response

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_api_product_attribute_response') is found 3 times:

  • /includes/legacy/api/v2/class-wc-api-products.php line 1909
    				'order_by'     => $attribute->attribute_orderby,
    				'has_archives' => (bool) $attribute->attribute_public,
    			);
    
    			return array( 'product_attribute' => apply_filters( 'woocommerce_api_product_attribute_response', $product_attribute, $id, $fields, $attribute, $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 2462
    				'order_by'     => $attribute->attribute_orderby,
    				'has_archives' => (bool) $attribute->attribute_public,
    			);
    
    			return array( 'product_attribute' => apply_filters( 'woocommerce_api_product_attribute_response', $product_attribute, $id, $fields, $attribute, $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 2827
    				'slug'  => $term->slug,
    				'count' => $term->count,
    			);
    
    			return array( 'product_attribute_term' => apply_filters( 'woocommerce_api_product_attribute_response', $attribute_term, $id, $fields, $term, $this ) );
    		} catch ( WC_API_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
    		}
    	}
    
    	/**