* added is_new_ui() function;

This commit is contained in:
Mykyta Synelnikov
2024-11-19 22:58:04 +02:00
parent 51770387e5
commit 909dd7f987
+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
*