PHP Class Kirki_Settings_Repeater_Setting, kirki

Inheritance: extends WP_Customize_Setting
Mostrar archivo Open project: aristath/kirki

Public Methods

Method Description
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) Constructor.
sanitize_repeater_setting ( string $value ) : array Convert the JSON encoded setting coming from Customizer to an Array.
value ( ) : mixed Fetch the value of the setting.

Method Details

__construct() public method

Any supplied $args override class property defaults.
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] )
$manager WP_Customize_Manager The WordPress WP_Customize_Manager object.
$id string A specific ID of the setting. Can be a theme mod or option name.
$args array Setting arguments.

sanitize_repeater_setting() public method

Convert the JSON encoded setting coming from Customizer to an Array.
public sanitize_repeater_setting ( string $value ) : array
$value string URL Encoded JSON Value.
return array

value() public method

Fetch the value of the setting.
public value ( ) : mixed
return mixed The value.