This commit is contained in:
nguyen dung
2022-02-18 16:43:41 +07:00
commit 39b8cb3612
4470 changed files with 1378320 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
/**
* Override field methods
*
* @package Kirki
* @subpackage Controls
* @copyright Copyright (c) 2020, David Vongries
* @license https://opensource.org/licenses/MIT
* @since 2.3.2
*/
/**
* Field overrides.
*/
class Kirki_Field_Dimension extends Kirki_Field {
/**
* Sets the control type.
*
* @access protected
*/
protected function set_type() {
$this->type = 'kirki-dimension';
}
/**
* Sanitizes the value.
*
* @access public
* @param string $value The value.
* @return string
*/
public function sanitize( $value ) {
return sanitize_text_field( $value );
}
}