0 %

Woocommerce shop manager role breaks WPBakery Page Builder roles.

Woocommerce shop manager role breaks WPBakery Page Builder roles.

It was related to WooCommerce update in newer version editable_roles was setup incorrectly.

In line: wp-content/plugins/woocommerce/includes/wc-user-functions.php:397
$shop_manager_editable_roles = apply_filters( 'woocommerce_shop_manager_editable_roles', array( 'customer' ) );

shop_manager role is not set as editable_role but it setup'ed a some other role "customer" and this causes an issue when opening the edit page/post view.

Fix will be available in next relaase of WPBakery Page Builder,
quick fix is:

add_filter('woocommerce_shop_manager_editable_roles', function($roles) {
  $roles[]='shop_manager';
  return array_unique($roles);
});
Việt Lâm Coder

Việt Lâm Coder

Senior Fullstack & System Architect

Cần hỗ trợ website? Gọi / Zalo 0944.71.4545.

Trao đổi về dự án của bạn!

VietLamCoder CMS — Nền Tảng Quản Trị Flat-File Siêu Tốc LamWeb.com.vn — Hệ Sinh Thái Thiết Kế Web & Kho Giao Diện 2026