Retrieves the registered sidebar with the given id.
$idstring|intrequired
protected function get_sidebar( $id ) {
return wp_get_sidebar( $id );
}
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_sidebars_controller/get_sidebar