=' ) ) { return "true"; } else { return "false"; } } } // Admin Style CSS function ahevc_admin_enqeue() { wp_enqueue_style( 'ahevc_admin_css', plugins_url( 'admin/admin.css', __FILE__ ) ); } add_action( 'admin_enqueue_scripts', 'ahevc_admin_enqeue' ); // Initialize hover effects addon add_action( 'vc_before_init', 'init_ahevc_addon' ); function init_ahevc_addon() { //params require_once 'admin/params/index.php'; // hover effects shortcode require_once( 'hover-effects/hover-effects.php' ); } } // Check If VC is activate else { function ahevc_required_plugin() { if ( is_admin() && current_user_can( 'activate_plugins' ) && !is_plugin_active( 'js_composer/js_composer.php' ) ) { add_action( 'admin_notices', 'ahevc_required_plugin_notice' ); deactivate_plugins( plugin_basename( __FILE__ ) ); if ( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } } } add_action( 'admin_init', 'ahevc_required_plugin' ); function ahevc_required_plugin_notice(){ ?>

Error! you need to install or activate the WPBakery Page Builder for WordPress (formerly Visual Composer) plugin to run "Amazing Hover Effects for WPBakery Page Builder" plugin.