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