PHP 클래스 WPLib_Theme, wplib

Provide support for WordPress themes
상속: extends WPLib_Module_Base
파일 보기 프로젝트 열기: wplib/wplib 1 사용 예제들

공개 메소드들

메소드 설명
_body_class ( array $classes ) : array Adds any classes passed to $theme->set_body_class() to the classes that will be displayed in
_template_include_999 ( $template ) : null Hijack template_include so that we can ensure a $theme variable is defined.
_wp_enqueue_scripts_0 ( ) Creates a JS variable WPLib.ajaxurl
on_load ( ) Sets hooks required by all themes.
set_mock_theme ( $theme ) : mixed Theme method for setting a theme instance for unit test mocking.

메소드 상세

_body_class() 정적인 공개 메소드

..">
static public _body_class ( array $classes ) : array
$classes array
리턴 array

_template_include_999() 정적인 공개 메소드

Hijack template_include so that we can ensure a $theme variable is defined.
static public _template_include_999 ( $template ) : null
리턴 null

_wp_enqueue_scripts_0() 정적인 공개 메소드

Priority 0 ONLY so that this static function does not conflict with the instance method in child classes
static public _wp_enqueue_scripts_0 ( )

on_load() 정적인 공개 메소드

Sets hooks required by all themes.
static public on_load ( )

set_mock_theme() 정적인 공개 메소드

Theme method for setting a theme instance for unit test mocking.
static public set_mock_theme ( $theme ) : mixed
$theme
리턴 mixed