parent_file) && 'plugins.php' === $screen->parent_file && 'update' === $screen->id) { return; } $plugin = 'elementor/elementor.php'; if (_is_dep_plugin_installed($plugin)) { 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! Ultimate Store Kit not working because you need to activate the Elementor plugin first.', 'ultimate-store-kit') . '
'; $admin_message .= '' . sprintf('%s', $activation_url, esc_html__('Activate Elementor Now', 'ultimate-store-kit')) . '
'; } 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! Ultimate Store Kit not working because you need to install the Elementor plugin', 'ultimate-store-kit') . '
'; $admin_message .= '' . sprintf('%s', $install_url, esc_html__('Install Elementor Now', 'ultimate-store-kit')) . '
'; } printf('' . esc_html__('Ops! Ultimate Store Kit not working because you need to activate a eCommerce plugin like WooCommerce or Easy Digital Downloads first.', 'ultimate-store-kit') . '
'; $admin_message .= '' . sprintf('%s', $activation_url, esc_html__('Activate WooCommerce Now', 'ultimate-store-kit')) . '
'; } else { if (! current_user_can('install_plugins')) { return; } $install_url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=woocommerce'), 'install-plugin_woocommerce'); $admin_message = '' . esc_html__('Ops! Ultimate Store Kit not working because you need to install a eCommerce plugin like WooCommerce or Easy Digital Download first.', 'ultimate-store-kit') . '
'; $admin_message .= '' . sprintf('%s', $install_url, esc_html__('Install WooCommerce Now', 'ultimate-store-kit')) . '
'; } printf('