WP Bakery Page Builder 丢失角色管理器中的设置

Kid*_*kie 2 wordpress visual-composer

我们正在为客户网站使用 WP Bakery Page Builder。该插件工作正常,但有时角色管理器中的设置(作曲家应该使用的帖子类型)只会重置。

我们正在研究以编程方式破解设置以将其设置为默认打开的可能性。

只是想检查是否有其他人注意到这个问题。

pan*_*nts 5

这是旧版本中的一个错误。开发人员在这里发布了修复程序: https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431/comments ?utf8=%E2%9C%93&term=add_custom_post_type_here&from_buyers_and_authors_only=0

<?php
/*
    You can set the post type for which the editor should be
    available by adding the following code to functions.php:
*/
add_action( 'vc_before_init', 'Use_wpBakery' );
function Use_wpBakery() {
  $vc_list = array('page','capabilities','add_custom_post_type_here');
  vc_set_default_editor_post_types($vc_list);
  vc_editor_set_post_types($vc_list);
}
Run Code Online (Sandbox Code Playgroud)

编辑:更新了开发评论的链接。