PluginProbe
Magic Login – Magic Link & Passwordless Authentication for WordPress – Login Without Password / 2.4
Magic Login – Magic Link & Passwordless Authentication for WordPress – Login Without Password v2.4
2.8.1 2.1 2.1.1 2.1.2 2.1.3 2.2 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.4 2.4.1 2.4.2 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.3 2.7 2.7.1 2.8 trunk All 48 releases
magic-login / uninstall.php

uninstall.php in Magic Login – Magic Link & Passwordless Authentication for WordPress – Login Without Password 2.4, at uninstall.php

32 lines 653 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Uninstall Magic Login
4 * Deletes all plugin related data and configurations
5 *
6 * @package MagicLogin
7 */
8
9 // Exit if accessed directly.
10 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
11 exit;
12 }
13
14 // don't perform uninstallation routine if pro version is active
15 if ( defined( 'MAGIC_LOGIN_PRO_PLUGIN_FILE' ) ) {
16 return;
17 }
18
19 require_once 'plugin.php';
20
21 // delete plugin settings
22 delete_option( \MagicLogin\Constants\SETTING_OPTION );
23 delete_site_option( \MagicLogin\Constants\SETTING_OPTION );
24
25 // clean-up tokens
26 MagicLogin\Utils\delete_all_tokens();
27
28 // clean-up scheduled cron
29 wp_clear_scheduled_hook( 'magic_login_cleanup_expired_tokens' );
30
31
32