PHP 클래스 Carbon_Fields\Manager\Sidebar_Manager

파일 보기 프로젝트 열기: htmlburger/carbon-fields 1 사용 예제들

공개 메소드들

메소드 설명
action_handler ( ) : array | void Handle action requests.
add_sidebar ( string $name, string $id = '' ) : boolean | WP_Error Add a new custom sidebar.
enqueue_scripts ( ) Enqueue the UI scripts.
get_sidebars ( ) : array Get all the registered custom sidebars.
instance ( ) : Sidebar_Manager Singleton implementation.
register_sidebars ( ) Register the custom sidebars.
remove_sidebar ( string $id ) : boolean | WP_Error Remove a custom sidebar by ID.

비공개 메소드들

메소드 설명
setup ( ) Register actions, filters, etc.

메소드 상세

action_handler() 공개 메소드

Handle action requests.
public action_handler ( ) : array | void
리턴 array | void Output JSON if DOING_AJAX, otherwise return an array

add_sidebar() 공개 메소드

Add a new custom sidebar.
또한 보기: Sidebar_Manager::register_sidebars()
public add_sidebar ( string $name, string $id = '' ) : boolean | WP_Error
$name string Sidebar Name
$id string Sidebar ID
리턴 boolean | WP_Error

enqueue_scripts() 공개 메소드

Enqueue the UI scripts.
public enqueue_scripts ( )

get_sidebars() 공개 메소드

Get all the registered custom sidebars.
public get_sidebars ( ) : array
리턴 array

instance() 공개 정적인 메소드

Singleton implementation.
public static instance ( ) : Sidebar_Manager
리턴 Sidebar_Manager

register_sidebars() 공개 메소드

Register the custom sidebars.
public register_sidebars ( )

remove_sidebar() 공개 메소드

Remove a custom sidebar by ID.
또한 보기: Sidebar_Manager::register_sidebars()
public remove_sidebar ( string $id ) : boolean | WP_Error
$id string Sidebar ID
리턴 boolean | WP_Error