PHP 클래스 Kirki_Init, kirki

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

공개 메소드들

메소드 설명
__construct ( ) The class constructor.
add_fields ( ) : void Create the settings and controls from the $fields array and register them.
add_panels ( ) Register our panels to the WordPress Customizer.
add_sections ( ) : void Register our sections to the WordPress Customizer.
add_to_customizer ( ) : void Helper function that adds the fields, sections and panels to the customizer.
fields_from_filters ( ) Process fields added using the 'kirki/fields' and 'kirki/controls' filter.
get_variables ( ) : array Build the variables.
register_control_types ( ) : void Register control types
set_url ( ) Properly set the Kirki URL for assets.
update_user_meta ( string $value, object $wp_customize_setting ) Handle saving of settings with "user_meta" storage type.

메소드 상세

__construct() 공개 메소드

The class constructor.
public __construct ( )

add_fields() 공개 메소드

Create the settings and controls from the $fields array and register them.
public add_fields ( ) : void
리턴 void

add_panels() 공개 메소드

Register our panels to the WordPress Customizer.
public add_panels ( )

add_sections() 공개 메소드

Register our sections to the WordPress Customizer.
public add_sections ( ) : void
리턴 void

add_to_customizer() 공개 메소드

Helper function that adds the fields, sections and panels to the customizer.
public add_to_customizer ( ) : void
리턴 void

fields_from_filters() 공개 메소드

These filters are no longer used, this is simply for backwards-compatibility.
public fields_from_filters ( )

get_variables() 공개 정적인 메소드

Build the variables.
public static get_variables ( ) : array
리턴 array ('variable-name' => value)

register_control_types() 공개 메소드

Register control types
public register_control_types ( ) : void
리턴 void

set_url() 공개 메소드

Determines if Kirki is installed as a plugin, in a child theme, or a parent theme and then does some calculations to get the proper URL for its CSS & JS assets.
public set_url ( )

update_user_meta() 공개 메소드

Handle saving of settings with "user_meta" storage type.
public update_user_meta ( string $value, object $wp_customize_setting )
$value string The value being saved.
$wp_customize_setting object $WP_Customize_Setting The WP_Customize_Setting instance when saving is happening.