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)


Top ↑

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;
	}


Top ↑

Changelog

Changelog
VersionDescription
6.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.