Метод | Описание | |
---|---|---|
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 ( ) : |
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. |
public action_handler ( ) : array | void | ||
Результат | array | void | Output JSON if DOING_AJAX, otherwise return an array |
public get_sidebars ( ) : array | ||
Результат | array |
public static instance ( ) : |
||
Результат |
public remove_sidebar ( string $id ) : boolean | WP_Error | ||
$id | string | Sidebar ID |
Результат | boolean | WP_Error |