Retrieves the registered sidebar with the given id.
Parameters
$id
string|intrequired- ID of the sidebar.
Source
protected function get_sidebar( $id ) {
return wp_get_sidebar( $id );
}
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |
CARVIEW |
Retrieves the registered sidebar with the given id.
$id
string|intrequiredprotected function get_sidebar( $id ) {
return wp_get_sidebar( $id );
}
Uses | Description |
---|---|
wp_get_sidebar()wp-includes/widgets.php | Retrieves the registered sidebar with the given ID. |
Used by | Description |
---|---|
WP_REST_Sidebars_Controller::get_items_permissions_check()wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php | Checks if a given request has access to get sidebars. |
WP_REST_Sidebars_Controller::get_items()wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php | Retrieves the list of sidebars (active or inactive). |
WP_REST_Sidebars_Controller::get_item_permissions_check()wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php | Checks if a given request has access to get a single sidebar. |
WP_REST_Sidebars_Controller::get_item()wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php | Retrieves one sidebar from the collection. |
WP_REST_Sidebars_Controller::update_item()wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php | Updates a sidebar. |
Version | Description |
---|---|
5.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.