WordPress at a glance
function is not described

wp_widget_description() WP 2.5.0

Retrieve description for widget.

When registering widgets, the options can also include 'description' that describes the widget for display on the widget administration panel or in the theme.

  • Global. Array. $wp_registered_widgets

No Hooks.


String/null. Widget description, if available.


wp_widget_description( $id );
$id(int/string) (required)
Widget ID.

Code of wp widget description: wp-includes/widgets.php VER 5.0.3

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

	global $wp_registered_widgets;

	if ( isset($wp_registered_widgets[$id]['description']) )
		return esc_html( $wp_registered_widgets[$id]['description'] );