WP_Widget_Media::get_default_description() WordPress Method
The WP_Widget_Media::get_default_description() method is used to get the default description for a media widget. This is used as the fallback description when a user has not entered a description for their media widget.
WP_Widget_Media::get_default_description() #
Returns the default description of the widget.
Return
(string)
Source
File: wp-includes/widgets/class-wp-widget-media.php
protected static function get_default_description() {
if ( self::$default_description ) {
return self::$default_description;
}
self::$default_description = __( 'A media item.' );
return self::$default_description;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |