Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/widgets/class-wp-widget-media.php

WP_Widget_Media::reset_default_labels()

Method: Resets the cache for the default labels.

Source: wp-includes/widgets/class-wp-widget-media.php:448

Used by 0 functions | Uses 0 functions

WP_Widget_Media::get_default_description()

Method: Returns the default description of the widget.

Source: wp-includes/widgets/class-wp-widget-media.php:472

Used by 1 function | Uses 1 function

WP_Widget_Media::get_l10n_defaults()

Method: Returns the default localized strings used by the widget.

Source: wp-includes/widgets/class-wp-widget-media.php:488

Used by 1 function | Uses 5 functions

WP_Widget_Media::_register_one()

Method: Add hooks while registering all widget instances of this widget class.

Source: wp-includes/widgets/class-wp-widget-media.php:103

Used by 0 functions | Uses 3 functions

widget_{$this->id_base}_instance_schema

Filter Hook: Filters the media widget instance schema to add additional properties.

Source: wp-includes/widgets/class-wp-widget-media.php:168

Used by 2 functions | Uses 0 functions

WP_Widget_Media::enqueue_preview_scripts()

Method: Enqueue preview scripts.

Source: wp-includes/widgets/class-wp-widget-media.php:395

Used by 0 functions | Uses 0 functions

WP_Widget_Media::enqueue_admin_scripts()

Method: Loads the required scripts and styles for the widget control.

Source: wp-includes/widgets/class-wp-widget-media.php:402

Used by 4 functions | Uses 2 functions

WP_Widget_Media::render_control_template_scripts()

Method: Render form template scripts.

Source: wp-includes/widgets/class-wp-widget-media.php:412

Used by 4 functions | Uses 3 functions

WP_Widget_Media::has_content()

Method: Whether the widget has content to show.

Source: wp-includes/widgets/class-wp-widget-media.php:461

Used by 1 function | Uses 1 function

WP_Widget_Media::form()

Method: Outputs the settings update form.

Source: wp-includes/widgets/class-wp-widget-media.php:334

Used by 0 functions | Uses 5 functions

WP_Widget_Media::display_media_state()

Method: Filters the default media display states for items in the Media list table.

Source: wp-includes/widgets/class-wp-widget-media.php:363

Used by 0 functions | Uses 3 functions

WP_Widget_Media::get_instance_schema()

Method: Get schema for properties of a widget instance (item).

Source: wp-includes/widgets/class-wp-widget-media.php:136

Used by 6 functions | Uses 2 functions

WP_Widget_Media::is_attachment_with_mime_type()

Method: Determine if the supplied attachment is for a valid attachment post with the specified MIME type.

Source: wp-includes/widgets/class-wp-widget-media.php:182

Used by 0 functions | Uses 2 functions

WP_Widget_Media::sanitize_token_list()

Method: Sanitize a token list string, such as used in HTML rel and class attributes.

Source: wp-includes/widgets/class-wp-widget-media.php:206

Used by 0 functions | Uses 0 functions

WP_Widget_Media::widget()

Method: Displays the widget on the front-end.

Source: wp-includes/widgets/class-wp-widget-media.php:225

Used by 0 functions | Uses 6 functions

widget_{$this->id_base}_instance

Filter Hook: Filters the media widget instance prior to rendering the media.

Source: wp-includes/widgets/class-wp-widget-media.php:251

Used by 1 function | Uses 0 functions

WP_Widget_Media::update()

Method: Sanitizes the widget form values as they are saved.

Source: wp-includes/widgets/class-wp-widget-media.php:273

Used by 0 functions | Uses 4 functions

WP_Widget_Media::render_media()

Method: Render the media on the frontend.

Source: wp-includes/widgets/class-wp-widget-media.php:321

Used by 1 function | Uses 0 functions

WP_Widget_Media

Class: Core class that implements a media widget.

Source: wp-includes/widgets/class-wp-widget-media.php:17

Used by 4 functions | Uses 1 function

WP_Widget_Media::__construct()

Method: Constructor.

Source: wp-includes/widgets/class-wp-widget-media.php:72

Used by 4 functions | Uses 4 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry