PHP 클래스 WPDKThemeCustomize

부터: 1.4.9
저자: =undo= ([email protected])
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 메소드들

메소드 설명
__construct ( ) : WPDKThemeCustomize Create an instance of WPDKThemeCustomize class
customize_preview_init ( ) This outputs the javascript needed to automate the live settings preview.
customize_register ( WP_Customize_Manager $wp_customize ) This hooks into 'customize_register' (available as of WP 3.4) and allows you to add new sections and controls to the Theme Customize screen.
sections ( ) : array Return an array of sections. You can set this array in two ways:
wp_head ( ) This will output the custom WordPress settings to the live theme's WP head.

메소드 상세

__construct() 공개 메소드

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

customize_preview_init() 공개 메소드

Also keep in mind that this function isn't necessary unless your settings are using 'transport'=>'postMessage' instead of the default 'transport' => 'refresh'

customize_register() 공개 메소드

Note: To enable instant preview, we have to actually write a bit of custom javascript. See live_preview() for more.
public customize_register ( WP_Customize_Manager $wp_customize )
$wp_customize WP_Customize_Manager An instance of WP_Customize_Manager class

sections() 공개 메소드

$sections = array( 'id_section' => array( args... ) ); OR $sections = array( new WP_Customize_Section() );
public sections ( ) : array
리턴 array

wp_head() 공개 메소드

This will output the custom WordPress settings to the live theme's WP head.
public wp_head ( )