Files
revision/core/theme-demos/import/class-customizer-option.php
2025-08-21 14:40:43 +02:00

24 lines
481 B
PHP

<?php
/**
* A class that extends WP_Customize_Setting so we can access
* the protected updated method when importing options.
*
* Used in the Customizer importer.
*
* @since 1.0.0
* @package Revision
*/
final class CSCO_Customizer_Option extends WP_Customize_Setting {
/**
* Import an option value for this setting.
*
* @since 1.0.0
* @param mixed $value The option value.
* @return void
*/
public function import( $value ) {
$this->update( $value );
}
}