'really-simple-security', 'action' => 'uninstall_keep_ssl', 'token' => $token ], rsssl_admin_url() ); wp_localize_script( $handle, 'rsssl_modal', apply_filters('rsssl_localize_script', [ 'json_translations' => $js_data['json_translations'], 'plugin_url' => rsssl_url, 'deactivate_keep_https' => $deactivate_keep_ssl_link, 'pro_plugin_active' => defined('rsssl_pro_version'), ]) ); function rsssl_add_modal_root_div() { // Check if we're on the plugins.php page $screen = get_current_screen(); if ($screen && $screen->id === 'plugins') { echo '
'; } } add_action('admin_footer', 'rsssl_add_modal_root_div'); } } add_action('admin_enqueue_scripts', 'rsssl_plugin_plugin_page_scripts');