1. Home
  2. Docs
  3. Inner API
  4. vc_is_as_theme()

vc_is_as_theme()

Helper function that will return (bool) true if WPBakery Page Builder is integrated in to the theme. This is true if theme author called vc_set_as_theme() from theme’s functions.php file.

<?php vc_is_as_theme(); ?>

Params

None.

Example

Check if WPBakery Page Builder is running in a “theme mode”.

<?php
if ( vc_is_as_theme() ) {
  //Do something
}
?>