Page tree
Skip to end of metadata
Go to start of metadata

You as a theme author may want to hide certain Visual Composer settings tabs, for example: "Design options" and "Custom CSS" tabs under WP Dashboard -> Visual Composer page. To do that, you should call vc_set_as_theme() function from your functions.php file.

<?php vc_set_as_theme(); ?>

Params

None.

Example

How to remove "Design options", "Custom CSS" tabs.

<?php
add_action( 'vc_before_init', 'your_prefix_vcSetAsTheme' );
function your_prefix_vcSetAsTheme() {
	vc_set_as_theme();
}
?>