parent_file ) && 'plugins.php' === $screen->parent_file && 'update' === $screen->id ) { return; } $plugin = 'elementor/elementor.php'; if ( _is_elementor_installed() ) { if ( ! current_user_can( 'activate_plugins' ) ) { return; } $activation_url = wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin . '&plugin_status=all&paged=1&s', 'activate-plugin_' . $plugin ); $admin_message = '

' . esc_html__( 'Ops! Prime Slider not working because you need to activate the Elementor plugin first.', 'bdthemes-prime-slider' ) . '

'; $admin_message .= '

' . sprintf( '%s', $activation_url, esc_html__( 'Activate Elementor Now', 'bdthemes-prime-slider' ) ) . '

'; } else { if ( ! current_user_can( 'install_plugins' ) ) { return; } $install_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=elementor' ), 'install-plugin_elementor' ); $admin_message = '

' . esc_html__( 'Ops! Prime Slider not working because you need to install the Elementor plugin', 'bdthemes-prime-slider' ) . '

'; $admin_message .= '

' . sprintf( '%s', $install_url, esc_html__( 'Install Elementor Now', 'bdthemes-prime-slider' ) ) . '

'; } echo '
' . wp_kses_post( $admin_message ) . '
'; } /** * Review Automation Integration */ if ( ! function_exists( 'rc_ps_lite_plugin' ) ) { function rc_ps_lite_plugin() { require_once BDTPS_CORE_INC_PATH . 'feedback-hub/start.php'; rc_dynamic_init( array( 'sdk_version' => '1.0.0', 'plugin_name' => 'Prime Slider', 'plugin_icon' => BDTPS_CORE_ASSETS_URL . 'images/logo.png', 'slug' => 'prime_slider_options', 'menu' => array( 'slug' => 'prime_slider_options', ), 'review_url' => 'https://bdt.to/prime-slider-elementor-addons-review', 'plugin_title' => esc_html__('Yay! Great that you\'re using Prime Slider', 'bdthemes-prime-slider'), 'plugin_msg' => '

' . esc_html__('Loved using Prime Slider on your website? Share your experience in a review and help us spread the love to everyone right now. Good words will help the community.', 'bdthemes-prime-slider') . '

', ) ); } add_action( 'admin_init', 'rc_ps_lite_plugin' ); }