| 1 |
<?php |
| 2 |
/** |
| 3 |
* A class that extends WP_Customize_Setting so we can access |
| 4 |
* the protected updated method when importing options. |
| 5 |
* |
| 6 |
* Used in the Customizer importer. |
| 7 |
* |
| 8 |
* @package ABlocks |
| 9 |
*/ |
| 10 |
|
| 11 |
namespace ABlocks\import; |
| 12 |
|
| 13 |
use WP_Customize_Setting; |
| 14 |
|
| 15 |
final class CustomizerOption extends WP_Customize_Setting { |
| 16 |
/** |
| 17 |
* Import an option value for this setting. |
| 18 |
* |
| 19 |
* @since 1.1.1 |
| 20 |
* @param mixed $value The option value. |
| 21 |
* @return void |
| 22 |
*/ |
| 23 |
public function import( $value ) { |
| 24 |
$this->update( $value ); |
| 25 |
} |
| 26 |
} |
| 27 |
|