mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
* added is_new_ui() function;
This commit is contained in:
@@ -1457,6 +1457,15 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
return $this->classes['action_scheduler'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the new design is enabled.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_new_ui() {
|
||||
return defined( 'UM_DEV_MODE' ) && UM_DEV_MODE && $this->options()->get( 'enable_new_ui' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Include files with hooked filters/actions
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user