Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ----------------------------------------------------------------------------------- */
- /* ACTIVATE VC
- /*----------------------------------------------------------------------------------- */
- if (is_plugin_active('js_composer/js_composer.php')) {
- // check the latest vc version
- if (version_compare(WPB_VC_VERSION, '4.11.2.1', '<')) {
- add_action('admin_notices', 'manual_plugin_vc_update_notify');
- }
- //if(function_exists('vc_set_as_theme')) vc_set_as_theme(true); // Activate on last
- require trailingslashit(get_template_directory()) . 'framework/vc.php';
- require trailingslashit(get_template_directory()) . 'framework/shortcodes.php';
- function manual_vc_remove_frontend_links() {
- vc_disable_frontend(); // this will disable frontend editor
- }
- add_action('vc_after_init', 'manual_vc_remove_frontend_links');
- }
- function manual_plugin_vc_update_notify() {
- ?>
- <div class="message" style="padding: 10px; font-size: 14px; color: #FCFCFC; color: #000000; background: white; box-shadow: 1px 1px 10px #828181;"><span style="color: #C31111; font-weight:bold;">PLEASE UPGRADE "WPBakery Visual Composer" to new version 4.11.2.1</span> <br><br> 1. Go to: Plugins -> Installed Plugins. <br>2. <strong>DELETE plugin</strong> "WPBakery Visual Composer" for the system. <strong><i>(you must DEACTIVATE plugin first and DELETE it)</i></strong> <br> 3. <strong>Click on "Begin installing plugin"</strong>, to install new version.</span> <br><br><i>Note: No data will be loss in this upgrade process.</i> </div>
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement