Merge branch 'pr/11008'
This commit is contained in:
commit
f98f6a39ee
|
@ -42,8 +42,8 @@ class WC_Admin_Taxonomies {
|
|||
$attribute_taxonomies = wc_get_attribute_taxonomies();
|
||||
|
||||
if ( $attribute_taxonomies ) {
|
||||
foreach ( array_keys( $attribute_taxonomies ) as $attribute ) {
|
||||
add_action( $attribute . '_pre_add_form', array( $this, 'product_attribute_description' ) );
|
||||
foreach ( $attribute_taxonomies as $attribute ) {
|
||||
add_action( 'pa_' . $attribute->attribute_name . '_pre_add_form', array( $this, 'product_attribute_description' ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue