vc_set_default_editor_post_types()

⌘K
  1. Home
  2. Docs
  3. Inner API
  4. vc_set_default_editor_post_types()

vc_set_default_editor_post_types()

To enable WPBakery Page Builder for theme defined post types by default, you can make use of vc_set_default_editor_post_types() api function.

<?php vc_set_default_editor_post_types( $list ); ?>

Params

Param name
Type
Description
$listArrayList of post types for which WPBakery Page Builder should be available by default

Example

How to add WPBakery Page Builder editing mode to your custom post type.

<?php
$list = array(
  'page',
  'custom_post_type'
);
vc_set_default_editor_post_types( $list );
?>

 

Was this article helpful to you? No Yes