| 1 |
<?php |
| 2 |
|
| 3 |
namespace FL\Assistant\Helpers; |
| 4 |
|
| 5 |
/** |
| 6 |
* A class that extends WP_Customize_Setting so we can access |
| 7 |
* the protected import method when importing options. |
| 8 |
*/ |
| 9 |
class CustomizerOptionHelper extends WP_Customize_Setting { |
| 10 |
|
| 11 |
/** |
| 12 |
* Import a value for this setting. |
| 13 |
* |
| 14 |
* @param mixed $value The option value. |
| 15 |
* @return void |
| 16 |
*/ |
| 17 |
public function import( $value ) { |
| 18 |
$this->update( $value ); |
| 19 |
} |
| 20 |
} |
| 21 |
|