Launchpad
Launchpad
Launchpad
  • Introduction
  • General
    • Installation
    • Creating a subscriber
    • Contributing
  • Tutorials
    • Beginner documentation
      • Beginner handbook
        • Creating subscribers
        • Wiring subscribers
        • Installing local environment
        • Adding front-end
        • Building the plugin
      • Plugin life circle
        • Activation
        • Deactivation
        • Uninstall
    • Starting with the framework
    • Migrating to Launchpad
    • Notions
      • Framework concepts
        • Inversion of control
        • Subscribers
        • Dispatcher
      • Good practices
        • Hooks
          • Preventing magic constants
          • Decouple features
          • Sanitize filters output
      • Testing
        • Organize tests
  • CLI
    • Commands
    • Creating a command
  • Testing
    • Unit test
    • Fixtures
    • Integration test
  • Container
    • Architecture
    • Parameters
    • Providers
    • Auto wiring
    • Manual wiring
    • Activation/Deactivation
    • Inflectors
  • Modules
    • Definition
    • Listing
      • Action Scheduler
      • BerlinDB
      • Bus
      • Options
      • Renderer
      • Logger
      • Uninstaller
      • Filesystem
      • Front-end
      • Hook extractor
    • Creating a module
Powered by GitBook
On this page
  • Activate
  • Deactivate
  • Uninstall
  1. Tutorials
  2. Beginner documentation

Plugin life circle

PreviousBuilding the pluginNextActivation

Last updated 5 months ago

Inside WordPress a plugin always follows the following life circle:

It is possible to take advantage of it, to execute some code at one of these steps.

Activate

The activate logic is a logic that will be executed when the plugin is installed or re-activated.

Launchpad offers to execute on this step.

Deactivate

The deactivate logic activated when the plugin is disabled.

Launchpad offers to execute on this step.

Uninstall

The uninstall logic is activated when the plugin is deleted.

Launchpad offers to execute on this step.

an easy way to add logic
an easy way to add logic
a module to add logic