Merge pull request #1592 from ultimatemember/feature/is_new_ui

Adds `UM()->is_new_ui()` function
This commit is contained in:
Mykyta Synelnikov
2024-11-19 22:59:02 +02:00
committed by GitHub
+9
View File
@@ -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
*