khaihihi
This commit is contained in:
25
wp-content/plugins/keydesign-addon/theme/vendors/ocdi/inc/CustomizerOption.php
vendored
Normal file
25
wp-content/plugins/keydesign-addon/theme/vendors/ocdi/inc/CustomizerOption.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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.1.1
|
||||
* @package ocdi
|
||||
*/
|
||||
|
||||
namespace OCDI;
|
||||
|
||||
final class CustomizerOption extends \WP_Customize_Setting {
|
||||
/**
|
||||
* Import an option value for this setting.
|
||||
*
|
||||
* @since 1.1.1
|
||||
* @param mixed $value The option value.
|
||||
* @return void
|
||||
*/
|
||||
public function import( $value ) {
|
||||
$this->update( $value );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user