WP_REST_Sidebars_Controller::get_sidebar( string|int $id ): array|null

In this article

Retrieves the registered sidebar with the given id.

Parameters

$idstring|intrequired
ID of the sidebar.

Return

array|null The discovered sidebar, or null if it is not registered.

Source

protected function get_sidebar( $id ) {
	return wp_get_sidebar( $id );
}

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.