mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-12 03:06:23 +09:00
- updated structure for action scheduler;
This commit is contained in:
@@ -20,6 +20,8 @@ if ( ! class_exists( 'um\common\Init' ) ) {
|
||||
* @used-by \UM::includes()
|
||||
*/
|
||||
public function includes() {
|
||||
$this->actions();
|
||||
|
||||
$this->cpt()->hooks();
|
||||
$this->screen();
|
||||
$this->secure()->hooks();
|
||||
@@ -27,6 +29,16 @@ if ( ! class_exists( 'um\common\Init' ) ) {
|
||||
$this->theme()->hooks();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.6.8
|
||||
*
|
||||
*/
|
||||
private function actions() {
|
||||
if ( empty( UM()->classes['um\common\actions\emails'] ) ) {
|
||||
UM()->classes['um\common\actions\emails'] = new actions\Emails();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.6.8
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user