WordPress at a glance
function is not described

wp_sidebar_description() WP 2.9.0

Retrieve description for a sidebar.

When registering sidebars a 'description' parameter can be included that describes the sidebar for display on the widget administration panel.

  • Global. Array. $wp_registered_sidebars Registered sidebars.

No Hooks.


String/null. Sidebar description, if available.


wp_sidebar_description( $id );
$id(string) (required)
sidebar ID.

Code of wp sidebar description: wp-includes/widgets.php WP 5.2.2

function wp_sidebar_description( $id ) {
	if ( ! is_scalar( $id ) ) {

	global $wp_registered_sidebars;

	if ( isset( $wp_registered_sidebars[ $id ]['description'] ) ) {
		return wp_kses( $wp_registered_sidebars[ $id ]['description'], 'sidebar_description' );