gpt4 book ai didi

wordpress - WP Bakery Page Builder 在 Role Manager 中丢失设置

转载 作者:行者123 更新时间:2023-12-02 15:01:30 25 4
gpt4 key购买 nike

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

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

只是想看看有没有其他人注意到这个问题。

最佳答案

这是旧版本中的错误。开发人员在此处发布了修复程序: 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);
}

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

关于wordpress - WP Bakery Page Builder 在 Role Manager 中丢失设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49316654/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com