PluginProbe
Kirki – Freeform Page Builder, Website Builder & Customizer / 6.2.5
Kirki – Freeform Page Builder, Website Builder & Customizer v6.2.5
6.3.0 6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.1 6.1.0 6.0.14 6.0.13 6.0.12 6.0.11 6.0.10 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 3.1.3 3.1.4 All 56 releases
kirki / customizer / packages / controls / radio / src / Field / Radio_Buttonset.php
Radio_Buttonset.php
55 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Override field methods
4 *
5 * @package kirki-framework/control-radio
6 * @copyright Copyright (c) 2023, Themeum
7 * @license https://opensource.org/licenses/MIT
8 * @since 1.0
9 */
10
11 namespace Kirki\Field;
12
13 /**
14 * Field overrides.
15 *
16 * @since 1.0
17 */
18 class Radio_Buttonset extends Radio {
19
20 /**
21 * The field type.
22 *
23 * @access public
24 * @since 1.0
25 * @var string
26 */
27 public $type = 'kirki-radio-buttonset';
28
29 /**
30 * The control class-name.
31 *
32 * @access protected
33 * @since 0.1
34 * @var string
35 */
36 protected $control_class = '\Kirki\Control\Radio_Buttonset';
37
38 /**
39 * Filter arguments before creating the control.
40 *
41 * @access public
42 * @since 0.1
43 * @param array $args The field arguments.
44 * @param WP_Customize_Manager $wp_customize The customizer instance.
45 * @return array
46 */
47 public function filter_control_args( $args, $wp_customize ) {
48 if ( $args['settings'] === $this->args['settings'] ) {
49 $args = parent::filter_control_args( $args, $wp_customize );
50 $args['type'] = 'kirki-radio-buttonset';
51 }
52 return $args;
53 }
54 }
55