curver/functions/kirki/field/class-kirki-field-color-alpha.php
Alexander Agnarson 7ad333b360 1.0.7
2020-02-25 18:04:54 +01:00

28 lines
523 B
PHP

<?php
/**
* Override field methods
*
* @package Kirki
* @subpackage Controls
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
* @license https://opensource.org/licenses/MIT
* @since 2.2.7
*/
/**
* Field overrides.
*/
class Kirki_Field_Color_Alpha extends Kirki_Field_Color {
/**
* Sets the $choices
*
* @access protected
*/
protected function set_choices() {
if ( ! is_array( $this->choices ) ) {
$this->choices = array();
}
$this->choices['alpha'] = true;
}
}