This commit is contained in:
proelements
2026-02-16 11:44:35 +02:00
parent 08ec8d01f1
commit b499583e5a
348 changed files with 3915 additions and 1414 deletions

View File

@@ -41,8 +41,24 @@ class Module extends Module_Base {
}
private function inject_props_schema( $schema ) {
$schema[ Display_Conditions_Prop_Type::get_key() ] = Display_Conditions_Prop_Type::make();
$display_conditions_prop_type = Display_Conditions_Prop_Type::make();
$components_module = 'Elementor\\Modules\\Components\\Module';
$overridable_prop_type = 'Elementor\\Modules\\Components\\PropTypes\\Overridable_Prop_Type';
$is_components_experiment_active = false;
if ( class_exists( $components_module ) ) {
$is_components_experiment_active = Plugin::elementor()->experiments->is_feature_active( $components_module::EXPERIMENT_NAME );
}
if (
$is_components_experiment_active &&
class_exists( $overridable_prop_type )
) {
$display_conditions_prop_type->meta( $overridable_prop_type::ignore() );
}
$schema[ Display_Conditions_Prop_Type::get_key() ] = $display_conditions_prop_type;
return $schema;
}