From 7cec3c9f0ba8ce591798caed8970e05eda21b8be Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Mon, 15 Dec 2014 14:40:23 +0100 Subject: [PATCH] introduced woocommerce_get_product_attributes filter --- includes/abstracts/abstract-wc-product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/abstracts/abstract-wc-product.php b/includes/abstracts/abstract-wc-product.php index 94cad701115..c0a3c70af67 100644 --- a/includes/abstracts/abstract-wc-product.php +++ b/includes/abstracts/abstract-wc-product.php @@ -1265,7 +1265,7 @@ class WC_Product { * @return array */ public function get_attributes() { - return (array) maybe_unserialize( $this->product_attributes ); + return apply_filters( 'woocommerce_get_product_attributes', (array) maybe_unserialize( $this->product_attributes ) ); } /**