pfeifferNet

Deactivator
in package

FinalYes

Fired by the plugin deactivation process.

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

Refactor to simplify and remove multisite network deactivation.

since
6.1.0

Refactor for consistency with class-activator.

Table of Contents

Constants

ACTIVATION_KEY  = 'pnet_activated'
The plugin activation key in wp_options.

Methods

run()  : void
Remove plugin attributes.
remove_cron_jobs()  : void
Remove cron tasks.
reset_permalinks()  : void
Reset permalinks.

Constants

ACTIVATION_KEY

The plugin activation key in wp_options.

private string ACTIVATION_KEY = 'pnet_activated'
Tags
since
6.1.0

Methods

remove_cron_jobs()

Remove cron tasks.

private static remove_cron_jobs() : void
Tags
since
6.7.0

Reset permalinks.

private static reset_permalinks() : void
  • Must be last action in deactivation.
  • Flush permalink rewrite rules.
Tags
since
6.1.0

        
On this page

Search results