- added UM_LEGACY_BUILDER_OFF constant for future development;

This commit is contained in:
Mykyta Synelnikov
2023-12-01 17:25:53 +02:00
parent 05928088d8
commit f8e49b96e1
3 changed files with 18 additions and 12 deletions
+6 -2
View File
@@ -553,8 +553,12 @@ final class Enqueue extends \um\common\Enqueue {
wp_enqueue_style( 'um_admin_common' );
if ( self::$um_cpt_form_screen ) {
$this->load_builder();
$this->load_modal();
if ( defined( 'UM_LEGACY_BUILDER_OFF' ) && UM_LEGACY_BUILDER_OFF ) {
// Do new assets.
} else {
$this->load_builder();
$this->load_modal();
}
}
$this->load_forms();