Skip to content

Instantly share code, notes, and snippets.

<?php
namespace Kirki\Controls;
/**
* Class SliderControl
* @package Kirki\Controls
* @modified Enrico Ripalti: added "units" value, if defined inside "choices" array of control, to make the slider work
* work with css property in postMessage transport mode. See variables $cmValue and $cmUnits
*/
@EnricoRipalti
EnricoRipalti / theme-customizer-setting.php
Created May 25, 2015 11:53
Theme customizer setting with the Old API
<?php
/**
* Handles the init and hooks to the customize_register action
*
* @author Enrico Ripalti
*
* @param WP_Customize_Manager $wp_customize: The WP_Customize_Manager instance
* @hooked customize_register
*/
function commlyCustomizerInit( $wp_customize ) {