Deactivator
in package
FinalYes
Fired by the plugin deactivation process.
- This class contains the functionality to run during the plugin's deactivation.
Tags
Table of Contents
Constants
- ACTIVATION_KEY = 'pgallery_activated'
- The plugin activation key in wp_options.
Methods
- run() : void
- Remove plugin attributes.
- reset_permalinks() : void
- Reset permalinks.
Constants
ACTIVATION_KEY
The plugin activation key in wp_options.
private
string
ACTIVATION_KEY
= 'pgallery_activated'
Tags
Methods
run()
Remove plugin attributes.
public
static run() : void
Tags
reset_permalinks()
Reset permalinks.
private
static reset_permalinks() : void
- Must be last action in deactivation.
- Deregister CPT or custom taxonomies that will affect permalinks.
- Albums taxonomy.
- Flush permalink rewrite rules.