vc_enabled_frontend()

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

vc_enabled_frontend()

Returns (bool) true if front end editor is enabled or (bool) false if theme author previously used vc_disable_frontend() to disabled front end editor on the site.

<?php vc_enabled_frontend(); ?>

Params

None.

Example

Check if frontend editing mode is enabled on your site.

<?php
if ( vc_enabled_frontend() ) {
  // Front end editor mode is enabled. Do something.
}
?>

 

Was this article helpful to you? No Yes 1

How can we help?