uninstall.php

Fired when the plugin is uninstalled.

Description

We are not using an uninstall hook because WordPress perfoms bad when using it. Even if below issue is "fixed", it did not resolve the perfomance issue.

Tags
see
https://core.trac.wordpress.org/ticket/31792

When populating this file, consider the following flow of control:

  • Check if the $_REQUEST['plugin'] content actually is cp-plgn-drctry/cp-plgn-drctry.php
  • Check if the $_REQUEST['action'] content actually is delete-plugin
  • Run a check_ajax_referer check to make sure it goes through authentication
  • Run a current_user_can check to make sure current user can delete a plugin
todo

Consider multisite. Once for a single site in the network, once sitewide.

author

Beda Schmid beda@tukutoi.com

link
https://www.tukutoi.com/
since
1.0.0

Table of Contents

cp_plgn_drctry_uninstall()  : void
Perform Uninstall Actions.

Functions

cp_plgn_drctry_uninstall()

Perform Uninstall Actions.

cp_plgn_drctry_uninstall() : void
Description

If uninstall not called from WordPress, If no uninstall action, If not this plugin, If no caps, then exit.

Tags
since
1.0.0
Return
(void)

Search results