vc_is_as_theme()

⌘K
  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
}
?>

 

Was this article helpful to you? No Yes 1

How can we help?