id}", array( $this, 'sanitize_spacing_setting' ), 10, 1 ); } /** * Fetch the value of the setting. * * @access public * @return mixed The value. */ public function value() { $value = parent::value(); $value = $this->sanitize_spacing_setting( $value ); if ( ! is_array( $value ) ) { $value = array(); } return $value; } /** * Convert the JSON encoded setting coming from Customizer to an Array. * * @access public * * @param string $value URL Encoded JSON Value. * * @return array */ public function sanitize_spacing_setting( $value ) { if ( ! is_array( $value ) ) { $value = json_decode( $value, true ); } return $value; } }