PluginProbe ʕ •ᴥ•ʔ
Customizer Export/Import / 0.8
Customizer Export/Import v0.8
trunk 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.9.1 0.9.2 0.9.7 0.9.7.1 0.9.7.2 0.9.7.3 0.9.8
customizer-export-import / classes / class-cei-option.php
customizer-export-import / classes Last commit date
class-cei-control.php 7 years ago class-cei-core.php 7 years ago class-cei-option.php 7 years ago
class-cei-option.php
22 lines
1 <?php
2
3 /**
4 * A class that extends WP_Customize_Setting so we can access
5 * the protected updated method when importing options.
6 *
7 * @since 0.3
8 */
9 final class CEI_Option extends WP_Customize_Setting {
10
11 /**
12 * Import an option value for this setting.
13 *
14 * @since 0.3
15 * @param mixed $value The option value.
16 * @return void
17 */
18 public function import( $value )
19 {
20 $this->update( $value );
21 }
22 }