PHP 클래스 WPDKUIComponents

You can override this class for register and manage your own components
저자: =undo= ([email protected])
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$components array List of components
$enqueue_scripts array List of scripts handle to load and concat with new WPDK wpdk-load-scripts-php
$enqueue_styles array List of styles handle to load and concat with new WPDK wpdk-load-styles-php

공개 메소드들

메소드 설명
__construct ( ) : WPDKUIComponents Create an instance of WPDKUIComponents class
enqueue ( string | array $component_handles ) Perform an enqueue of scripts and styles of a one or more components
init ( ) : WPDKUIComponents Return a singleton instance of WPDKUIComponents class
load_scripts ( boolean $print ) Filter whether to print the footer scripts.
load_styles ( ) Fires in for all admin pages.

비공개 메소드들

메소드 설명
components ( ) : array List of registered WPDK components

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKUIComponents class
public __construct ( ) : WPDKUIComponents
리턴 WPDKUIComponents

enqueue() 공개 메소드

Load a single components WPDKUIComponents::init()->enqueue( WPDKUIComponents::TOOLTIP ); Load one or more components WPDKUIComponents::init()->enqueue( array( WPDKUIComponents::MODAL, WPDKUIComponents::TOOLTIP ) ); Or... like kind of magic WPDKUIComponents::init()->enqueue( WPDKUIComponents::MODAL, WPDKUIComponents::TOOLTIP );
부터: 1.5.0
public enqueue ( string | array $component_handles )
$component_handles string | array One or more Component handle

init() 공개 정적인 메소드

Return a singleton instance of WPDKUIComponents class
public static init ( ) : WPDKUIComponents
리턴 WPDKUIComponents

load_scripts() 공개 메소드

Filter whether to print the footer scripts.
public load_scripts ( boolean $print )
$print boolean Whether to print the footer scripts. Default true.

load_styles() 공개 메소드

Fires in for all admin pages.
public load_styles ( )

프로퍼티 상세

$components 공개적으로 프로퍼티

List of components
부터: 1.6.0
public array $components
리턴 array

$enqueue_scripts 공개적으로 프로퍼티

List of scripts handle to load and concat with new WPDK wpdk-load-scripts-php
public array $enqueue_scripts
리턴 array

$enqueue_styles 공개적으로 프로퍼티

List of styles handle to load and concat with new WPDK wpdk-load-styles-php
public array $enqueue_styles
리턴 array