diff --git a/includes/class-init.php b/includes/class-init.php index 6fe5a4fb..f95b6f49 100644 --- a/includes/class-init.php +++ b/includes/class-init.php @@ -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 *