pfeifferNet

Activator
in package

FinalYes

Fired by the plugin activation process.

  • This class contains the functionality to run during the plugin's activation.
Tags
since
1.0.0
since
5.11.0

Refactor to simplify and remove multisite network activation.

since
6.1.0

Simplify and use smaller, modular functions.

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
since
6.1.0

Methods

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.
Tags
since
6.1.0
uses
Albums::register()

        
On this page

Search results