Advertisement
xpeed

admin upgrade notice

Jul 10th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. /* ----------------------------------------------------------------------------------- */
  2. /* ACTIVATE VC
  3. /*----------------------------------------------------------------------------------- */
  4. if (is_plugin_active('js_composer/js_composer.php')) {
  5. // check the latest vc version
  6. if (version_compare(WPB_VC_VERSION, '4.11.2.1', '<')) {
  7. add_action('admin_notices', 'manual_plugin_vc_update_notify');
  8. }
  9. //if(function_exists('vc_set_as_theme')) vc_set_as_theme(true); // Activate on last
  10. require trailingslashit(get_template_directory()) . 'framework/vc.php';
  11. require trailingslashit(get_template_directory()) . 'framework/shortcodes.php';
  12.  
  13. function manual_vc_remove_frontend_links() {
  14. vc_disable_frontend(); // this will disable frontend editor
  15. }
  16.  
  17. add_action('vc_after_init', 'manual_vc_remove_frontend_links');
  18. }
  19.  
  20. function manual_plugin_vc_update_notify() {
  21. ?>
  22. <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>
  23. <?php
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement