Uses
Uses | Description |
---|---|
wp-includes/kses.php: wp_kses() | Filters text content and strips out disallowed HTML. |
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.
(string) (Required) sidebar ID.
(string|void) Sidebar description, if available.
File: wp-includes/widgets.php
function wp_sidebar_description( $id ) { if ( ! is_scalar( $id ) ) { return; } global $wp_registered_sidebars; if ( isset( $wp_registered_sidebars[ $id ]['description'] ) ) { return wp_kses( $wp_registered_sidebars[ $id ]['description'], 'sidebar_description' ); } }
Version | Description |
---|---|
2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_sidebar_description