introduced woocommerce_get_product_attributes filter

This commit is contained in:
Nicola Mustone 2014-12-15 14:40:23 +01:00
parent a90854609a
commit 7cec3c9f0b
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );
}
/**