balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

CustomizerOption.php (489B)


      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  * @since 1.1.1
      9  * @package ocdi
     10  */
     11 
     12 namespace OCDI;
     13 
     14 final class CustomizerOption extends \WP_Customize_Setting {
     15 	/**
     16 	 * Import an option value for this setting.
     17 	 *
     18 	 * @since 1.1.1
     19 	 * @param mixed $value The option value.
     20 	 * @return void
     21 	 */
     22 	public function import( $value ) {
     23 		$this->update( $value );
     24 	}
     25 }