PHP 클래스 Kirki_Config, kirki

상속: extends Kirki_Customizer
파일 보기 프로젝트 열기: aristath/kirki 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

get_config() 공개 메소드

Returns the $config_final property
public get_config ( ) : array
리턴 array

get_instance() 공개 정적인 메소드

Each config has its own instance of this object.
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

프로퍼티 상세

$capability 보호되어 있는 프로퍼티

Capability (fields will inherit this).
protected string $capability
리턴 string

$compiler 보호되어 있는 프로퍼티

The compiler.
protected array $compiler
리턴 array

$config_final 보호되어 있는 프로퍼티

The finalized configuration array.
protected array $config_final
리턴 array

$disable_output 보호되어 있는 프로퍼티

Set to true if you want to completely disable any Kirki-generated CSS.
protected bool $disable_output
리턴 boolean

$id 보호되어 있는 프로퍼티

The configuration ID.
protected string $id
리턴 string

$option_name 보호되어 있는 프로퍼티

If we're using serialized options, then this is the global option name.
protected string $option_name
리턴 string

$option_type 보호되어 있는 프로퍼티

The data-type we'll be using.
protected string $option_type
리턴 string