Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
__construct ( string $id = 'global', array $args = [] ) | The class constructor. |
public get_config ( ) : array | ||
Результат | 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. } |
Результат | Kirki_Config |
protected string $capability | ||
Результат | string |
protected array $config_final | ||
Результат | array |
protected bool $disable_output | ||
Результат | boolean |
protected string $option_name | ||
Результат | string |
protected string $option_type | ||
Результат | string |