Control_Base_Units::get_default_settings()
Get units control default settings.
Description
Retrieve the default settings of the units control. Used to return the default settings while initializing the units control.
Return
(array) Control default settings.
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Source
includes/controls/base-units.php
], ]; } /** * Print units control settings. * * Used to generate the units control template in the editor. * * @since 1.0.0 * @access protected */ protected function print_units_template() { ?> <# if ( data.size_units.length > 1 ) { #> <div class="elementor-units-choices"> <# _.each( data.size_units, function( unit ) { #> <input id="elementor-choose-{{ data._cid + data.name + unit }}" type="radio" name="elementor-choose-{{ data.name }}" data-setting="unit" value="{{ unit }}"> <label class="elementor-units-choices-label" for="elementor-choose-{{ data._cid + data.name + unit }}">{{{ unit }}}</label> <# } ); #> </div> <# } #> <?php } }
Used By
- includes/controls/dimensions.php: Control_Dimensions::get_default_settings()
- includes/controls/slider.php: Control_Slider::get_default_settings()