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 | } |