\dtg\gift_aid_for_woocommerceUninstaller

Class Uninstaller

Carry out actions when the plugin is uninstalled.

Things to consider:

  • This method should be static
  • Check if the $_REQUEST content actually is the plugin name
  • Run an admin referrer check to make sure it goes through authentication
  • Verify the output of $_GET makes sense
  • Repeat with other user roles. Best directly by using the links/query string parameters.
  • Repeat things for multisite. Once for a single site in the network, once sitewide.

Summary

Methods
Properties
Constants
__construct()
run()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$plugin_root
$plugin_name
$plugin_prefix
N/A

Properties

$plugin_root

$plugin_root : string

Path to the root plugin file.

Type

string

$plugin_name

$plugin_name : string

Plugin name.

Type

string

$plugin_prefix

$plugin_prefix : string

Plugin prefix.

Type

string

Methods

__construct()

__construct() 

Constructor.

run()

run() 

Unleash Hell.