Property | Type | Description | |
---|---|---|---|
$capability | string | Capability (fields will inherit this). | |
$compiler | array | The compiler. | |
$config_final | array | The finalized configuration array. | |
$disable_output | boolean | Set to true if you want to completely disable any Kirki-generated CSS. | |
$id | string | The configuration ID. | |
$option_name | string | If we're using serialized options, then this is the global option name. | |
$option_type | string | The data-type we'll be using. |
Method | Description | |
---|---|---|
get_config ( ) : array | Returns the $config_final property | |
get_instance ( string $id = 'global', array $args = [] ) : Kirki_Config | Use this method to get an instance of your config. |
Method | Description | |
---|---|---|
__construct ( string $id = 'global', array $args = [] ) | The class constructor. |
public get_config ( ) : array | ||
return | array |
public static get_instance ( string $id = 'global', array $args = [] ) : Kirki_Config | ||
$id | string | Config ID. |
$args | array | { Optional. Arguments to override config defaults. @type string $capability @see https://codex.wordpress.org/Roles_and_Capabilities @type string $option_type theme_mod or option. @type string $option_name If we want to used serialized options, this is where we'll be adding the option name. All fields using this config will be items in that array. @type array $compiler Not yet fully implemented @type bool $disable_output If set to true, no CSS will be generated from fields using this configuration. } |
return | Kirki_Config |
protected string $capability | ||
return | string |
protected array $config_final | ||
return | array |
protected bool $disable_output | ||
return | boolean |
protected string $option_name | ||
return | string |
protected string $option_type | ||
return | string |