Plugin Order of Execution?
I am writing my own plugin but it is entirely embedded in its own class to prevent function name collisions.
As I wrote the code to hook my plugin into WordPress’s activation and deactivation events, I wondered how my plugin would know that it has already been activated.
I know I can create an option and then check its value once my activation/deactivation methods are called, but there must be a built-in way that WordPress uses.
Does the register_activation_hook() and register_deactivation_hook() immediately trigger my activation and deactivation methods (functions) once they are called with the appropriate parameters?
- The topic ‘Plugin Order of Execution?’ is closed to new replies.