I have strange problem with woocommerce product data options. Instead of opened by default, mine is closed on page opening.
I tried with this function to remove "closed" class, but without success. Any advices for this?
add_filter( "postbox_classes_product_woocommerce-product-data", 'product_postbox_data_open' );
function product_postbox_data_open( $classes ) {
array_splice( $classes, 'closed' );
return $classes;
}
2
Answers
Update: This is a way, i resolved my problem :)
You need to remove from
wp_usermeta
for youruser_id
the row that hasclosedpostboxes_product
as meta key, via phpMyAdmin…You can also do it running once this function (by browsing any page as an admin):
Code goes in functions.php file of the active child theme (or active theme). Remove it after usage.