Okay
  Public Ticket #2918058
Enable The WPBakery Page Builder for some Custom Post Types under multisite network.
Closed

Comments

  •  8
    Tim started the conversation

    Hey, 

    I want to enable the WPBakery Page Builder's Backend and Frontend Editor features for all roles in some Custom Post Types. 

    I found this tip at below but I have multisite network running more than 1000 sites. It would be hard to go through each site and change the settings.

    To enable the WPBakery Page Builder for your custom post types simply go to WPBakery Page Builder > Role Manager and under the user role you want to set the post types for you click “Custom” from the dropdown then check all the post types you want to use the Visual Composer on.


    Please let me know if any method exists to enable it.


    Thanks, 

    Tim

  •  8,939
    Tahir replied

    Hey Again,

    This WPBakery Plugin Developers can best answer this, however escalating this to our Salient Dev for further response.

    Thanks 


    ThemeNectar Support Team 

  •  1,085
    ThemeNectar replied

    Hey Tim,

    Unfortunately in the Salient version of WPBakery there's no filter accessible that you could use from your child theme to handle this. You'd need to modify the core plugin in the file js_composer_salient/include/classes/core/class-vc-manager.php at the function "editorDefaultPostTypes". 

    You could change it from this:

    public function editorDefaultPostTypes() {
        /*nectar addition */
        $options = get_option( 'salient_redux' );
        $nectar_vc_post_types = (!empty($options['product_tab_position']) && $options['product_tab_position'] == 'fullwidth') ? array('page','post','portfolio','product') : array('page','post','portfolio');
        return $nectar_vc_post_types;
       /*nectar addition end */
    }

    to return an array of your desired post types:

    public function editorDefaultPostTypes() {
        return array('page','post','portfolio'); 
    }

    I've noted to make this extendable from a child theme in the next release of the plugin.

    Kind regards,