PHP 클래스 WPDKWordPressTheme

## Overview This class is used when the frontend is loaded. You can subclassing this class for get a lot of facilities when you have to manage the theme interactions. ### Benefits This class prepare for us some useful and common action/filter hook.
저자: =undo= ([email protected])
상속: extends WPDKObject
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 프로퍼티들

프로퍼티 타입 설명
$__version string Override version
$plugin WPDKWordPressPlugin Your main plugin instance

공개 메소드들

메소드 설명
__construct ( WPDKWordPressPlugin $plugin = null ) : WPDKWordPressTheme Create a WPDKWordPressTheme object instance
_body_class ( array $classes ) : array Called when WordPress makes the class attribute of body tag
after_setup_theme ( ) Called by after_setup_theme action
template_include ( string $template ) : string Called by template_include filter. This filter is useful to change the defaul theme filename.
template_redirect ( ) Called by template_redirect action. This action is called before the frontend theme is displayed.
wp ( ) Called by wp action
wp_enqueue_scripts ( ) Called by wp_enqueue_scripts action. You will use this action to register (do a queue) scripts and styles.
wp_footer ( ) Called by wp_footer action. This action is called in the footer theme.
wp_head ( ) Called by wp_head action. This action is called after the head section and before the body tag.

메소드 상세

__construct() 공개 메소드

Create a WPDKWordPressTheme object instance
public __construct ( WPDKWordPressPlugin $plugin = null ) : WPDKWordPressTheme
$plugin WPDKWordPressPlugin Optional. Your main plugin instance
리턴 WPDKWordPressTheme

_body_class() 공개 메소드

Called when WordPress makes the class attribute of body tag
public _body_class ( array $classes ) : array
$classes array List of classes
리턴 array New list class

after_setup_theme() 공개 메소드

Called by after_setup_theme action
public after_setup_theme ( )

template_include() 공개 메소드

Called by template_include filter. This filter is useful to change the defaul theme filename.
public template_include ( string $template ) : string
$template string The URL of template
리턴 string A new URl template

template_redirect() 공개 메소드

Called by template_redirect action. This action is called before the frontend theme is displayed.
public template_redirect ( )

wp() 공개 메소드

Called by wp action
public wp ( )

wp_enqueue_scripts() 공개 메소드

Called by wp_enqueue_scripts action. You will use this action to register (do a queue) scripts and styles.
public wp_enqueue_scripts ( )

wp_head() 공개 메소드

Called by wp_head action. This action is called after the head section and before the body tag.
public wp_head ( )

프로퍼티 상세

$__version 공개적으로 프로퍼티

Override version
public string $__version
리턴 string

$plugin 공개적으로 프로퍼티

Your main plugin instance
public WPDKWordPressPlugin $plugin
리턴 WPDKWordPressPlugin