PHP Класс WPLib_Theme, wplib

Provide support for WordPress themes
Наследование: extends WPLib_Module_Base
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
_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