We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbfab3 commit 389ef8bCopy full SHA for 389ef8b
src/PluginLifecycle.php
@@ -9,14 +9,18 @@ public function boot(): void
9
$this->onBoot();
10
add_action('init', $this->onInit(...));
11
register_activation_hook(ENTRYPOINT_FILE, $this->onActivation(...));
12
- register_deactivation_hook(ENTRYPOINT_FILE, $this->onDeactivation(...));
+ register_deactivation_hook(ENTRYPOINT_FILE, $this->onUninstall(...));
13
}
14
15
+ /** @internal */
16
abstract protected function onBoot(): void;
17
18
19
abstract public function onInit(): void;
20
21
22
abstract public function onActivation(): void;
23
24
25
abstract public function onUninstall(): void;
26
0 commit comments