PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / trunk
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings vtrunk
7.1.2 7.1.1 7.1 7.0.4 7.0.6 7.0.7 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 6.3.1 trunk 5.7.3 5.7.5 5.8.1 5.8.2 5.8.3 5.8.4 5.8.6 6.0.4 6.0.5 6.0.7 6.1.0 All 34 releases
mlsimport / uninstall.php

uninstall.php in MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings trunk, at uninstall.php

36 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 http://mlsimport.com/
23 * @since 1.0.0
24 *
25 * @package Mlsimport
26 */
27
28 // If uninstall not called from WordPress, then exit.
29 // Guard: WordPress only defines WP_UNINSTALL_PLUGIN when running the uninstall hook,
30 // so any direct request to this file bails out here before any code runs.
31 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
32 exit;
33 }
34 // NOTE: past the guard the file currently performs no cleanup — the boilerplate skeleton
35 // only guards its entry point; no options/CPT/meta removal is implemented here.
36