firebase-authentication
Last commit date
admin
6 days ago
includes
6 days ago
languages
6 years ago
public
6 days ago
views
6 days ago
README.txt
6 days ago
class-mo-firebase-config.php
6 days ago
class-mo-firebase-contact-us.php
3 years ago
firebase-authentication.php
6 days ago
index.php
3 years ago
uninstall.php
3 years ago
uninstall.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Fired when the plugin is uninstalled. |
| 4 | * |
| 5 | * When populating this file, consider the following flow |
| 6 | * of control: |
| 7 | * |
| 8 | * - This method should be static |
| 9 | * - Check if the $_REQUEST content actually is the plugin name |
| 10 | * - Run an admin referrer check to make sure it goes through authentication |
| 11 | * - Verify the output of $_GET makes sense |
| 12 | * - Repeat with other user roles. Best directly by using the links/query string parameters. |
| 13 | * - Repeat things for multisite. Once for a single site in the network, once sitewide. |
| 14 | * |
| 15 | * This file may be updated more in future version of the Boilerplate; however, this is the |
| 16 | * general skeleton and outline for how the file should work. |
| 17 | * |
| 18 | * For more information, see the following discussion: |
| 19 | * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913 |
| 20 | * |
| 21 | * @link https://miniorange.com |
| 22 | * @since 1.0.0 |
| 23 | * |
| 24 | * @package Firebase_Authentication |
| 25 | */ |
| 26 | |
| 27 | // If uninstall not called from WordPress, then exit. |
| 28 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 29 | exit; |
| 30 | } |
| 31 | |
| 32 | delete_option( 'mo_firebase_auth_project_id' ); |
| 33 | delete_option( 'mo_firebase_auth_api_key' ); |
| 34 | delete_option( 'mo_enable_firebase_auth' ); |
| 35 | delete_option( 'mo_firebase_auth_disable_wordpress_login' ); |
| 36 | delete_option( 'mo_firebase_auth_enable_admin_wp_login' ); |
| 37 | delete_option( 'mo_firebase_auth_api_key' ); |
| 38 | delete_option( 'mo_firebase_auth_kid1' ); |
| 39 | delete_option( 'mo_firebase_auth_cert1' ); |
| 40 | delete_option( 'mo_firebase_auth_kid2' ); |
| 41 | delete_option( 'mo_firebase_auth_cert2' ); |
| 42 | delete_option( 'mo_firebase_auth_woocommerce_intigration' ); |
| 43 | delete_option( 'mo_enable_firebase_auto_register' ); |
| 44 | delete_option( 'mo_firebase_auth_buddypress_intigration' ); |
| 45 | delete_option( 'mo_fb_host_name' ); |
| 46 |