| @@ -19,20 +19,10 @@ | ||
| 19 | 19 | if ( defined( 'WPB_VC_VERSION' ) ) { |
| 20 | 20 | add_action( 'init', [ $this, 'wpbakery_init' ] ); |
| 21 | 21 | return; |
| 22 | 22 | } else { |
| 23 | - add_action('admin_notices', array( $this, 'wpbakery_notice' )); | |
| 24 | 23 | return; |
| 25 | 24 | } |
| 26 | - } | |
| 27 | - | |
| 28 | - // Show notice if your plugin is activated but WPBakery is not | |
| 29 | - public function wpbakery_notice() { | |
| 30 | - $plugin_data = get_plugin_data(__FILE__); | |
| 31 | - echo ' | |
| 32 | - <div class="updated"> | |
| 33 | - <p>'.sprintf(__('<strong>%s</strong> requires <strong><a href="https://wpbakery.com/" target="_blank">WPBakery Page Builder</a></strong> plugin to be installed and activated on your site.', 'borderless'), $plugin_data['Name']).'</p> | |
| 34 | - </div>'; | |
| 35 | 25 | } |
| 36 | 26 | |
| 37 | 27 | public function wpbakery_init() { |
| 38 | 28 | |