PHP 클래스 Kirki_Scripts_Icons, kirki

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

공개 프로퍼티들

프로퍼티 타입 설명
$icons_script string The script generated for ALL fields
$script_added boolean Whether the script has already been added to the customizer or not.

공개 메소드들

메소드 설명
__construct ( ) The class constructor
enqueue_script ( ) Format the script in a way that will be compatible with WordPress.
generate_script ( array $args = [] ) : void This works on a per-field basis.

메소드 상세

__construct() 공개 메소드

The class constructor
public __construct ( )

enqueue_script() 공개 메소드

Format the script in a way that will be compatible with WordPress.
public enqueue_script ( )

generate_script() 공개 정적인 메소드

Once created, the script is added to the $icons_script property.
public static generate_script ( array $args = [] ) : void
$args array The field definition.
리턴 void

프로퍼티 상세

$icons_script 공개적으로 정적으로 프로퍼티

The script generated for ALL fields
public static string $icons_script
리턴 string

$script_added 공개적으로 정적으로 프로퍼티

Whether the script has already been added to the customizer or not.
public static bool $script_added
리턴 boolean