Activator
in package
FinalYes
Fired by the plugin activation process.
- This class contains the functionality to run during the plugin's activation.
Tags
Table of Contents
Constants
- ACTIVATION_KEY = 'pgallery_activated'
- The plugin activation key in wp_options.
Methods
- run() : void
- Run the plugin activation process.
- reset_permalinks() : void
- Reset permalinks.
Constants
ACTIVATION_KEY
The plugin activation key in wp_options.
private
string
ACTIVATION_KEY
= 'pgallery_activated'
Tags
Methods
run()
Run the plugin activation process.
public
static run() : void
- User capability and nonce check is done in core.
Tags
reset_permalinks()
Reset permalinks.
private
static reset_permalinks() : void
- Must be last action in activation.
- Initialise any CPT or custom taxonomies that will affect permalinks.
- Albums taxonomy.
- Flush permalink rewrite rules.