Skip to content

Commit 30e5769

Browse files
committed
Fixed: cron is now registered properly upon plugin activation.
1 parent 6ceaf40 commit 30e5769

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Plugin.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ final class Plugin {
1616
* @return void
1717
*/
1818
public function register() {
19+
$this->setup();
20+
1921
// Register services used throughout the plugin. (WP Rocket runs at priority 10)
2022
add_action( 'plugins_loaded', [ $this, 'register_services' ], 9 );
2123

2224
// Load text domain.
2325
add_action( 'init', [ $this, 'load_plugin_textdomain' ], 1000 );
2426
}
2527

28+
public function setup() {
29+
new Setup();
30+
}
31+
2632
/**
2733
* Registers the individual services of the plugin.
2834
*
@@ -47,7 +53,6 @@ public function register_services() {
4753
new Compatibility();
4854
new Filters();
4955
new Proxy();
50-
new Setup();
5156
}
5257

5358
/**

0 commit comments

Comments
 (0)