get_ocean_extra_status()['status']; if ( $status === 'active' ) { return; } wp_enqueue_script( 'ocean-extra-plugin-notice-js', OCEANWP_INC_DIR_URI . 'activation-notice/assets/js/notice.min.js', array( 'jquery' ), OCEANWP_THEME_VERSION, true ); wp_localize_script( 'ocean-extra-plugin-notice-js', 'owp_notification_i18n', array( 'activating' => __( 'Activating...', 'oceanwp' ), 'installing_activating' => __( 'Installing & activating...', 'oceanwp' ), ) ); wp_register_style( 'ocean-extra-plugin-notice-css', OCEANWP_INC_DIR_URI . 'activation-notice/assets/css/notice.min.css', array(), OCEANWP_THEME_VERSION ); wp_enqueue_style( 'ocean-extra-plugin-notice-css' ); } add_action( 'admin_enqueue_scripts', 'oceancp_output_ocean_extra_notice_enqueue_scripts' ); add_action( 'admin_notices', function () { oceancp_output_ocean_extra_notice(); } ); function oceancp_output_ocean_extra_notice() { if ( ! apply_filters( 'oceanwp:admin:display-ocean-extra-plugin-notice', true ) ) { return; } if ( ! current_user_can( 'activate_plugins' ) ) { return; } if ( get_option( 'dismissed-oceanwp_plugin_notice', false ) ) { return; } $manager = new Oceanwp_Plugin_Manager(); $status = $manager->get_ocean_extra_status()['status']; if ( $status === 'active' ) { return; } echo '
plugin.