Added Action Scheduler

This commit is contained in:
Yurii Nalivaiko
2024-09-04 18:03:22 +02:00
parent f2d4c6135a
commit ec18f52dd9
6 changed files with 128 additions and 28 deletions
-13
View File
@@ -25,7 +25,6 @@ if ( ! class_exists( 'um\common\Init' ) ) {
$this->secure()->hooks();
$this->site_health();
$this->theme()->hooks();
$this->action_scheduler();
}
/**
@@ -87,17 +86,5 @@ if ( ! class_exists( 'um\common\Init' ) ) {
}
return UM()->classes['um\common\theme'];
}
/**
* @since 2.6.8
*
* @return Action_Scheduler
*/
public function action_scheduler() {
if ( empty( UM()->classes['um\common\action_scheduler'] ) ) {
UM()->classes['um\common\action_scheduler'] = new Action_Scheduler();
}
return UM()->classes['um\common\action_scheduler'];
}
}
}