Méthode | Description | |
---|---|---|
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. |
Méthode | Description | |
---|---|---|
setup ( ) | Register actions, filters, etc. |
public action_handler ( ) : array | void | ||
Résultat | array | void | Output JSON if DOING_AJAX, otherwise return an array |
public get_sidebars ( ) : array | ||
Résultat | array |
public static instance ( ) : |
||
Résultat |
public remove_sidebar ( string $id ) : boolean | WP_Error | ||
$id | string | Sidebar ID |
Résultat | boolean | WP_Error |