Title: 4.8.0 | Page 3 of 4 | Developer.WordPress.org

---

# New and updated in 4.8.0

Functions

Hooks

Classes

Methods

 * method[WP_Widget_Media::is_attachment_with_mime_type()](https://developer.wordpress.org/reference/classes/wp_widget_media/is_attachment_with_mime_type/)
 * Determine if the supplied attachment is for a valid attachment post with the 
   specified MIME type.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_widget_media/is_attachment_with_mime_type/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_widget_media/is_attachment_with_mime_type/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media.php:186](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media.php#L186-L198)
 * method[WP_Widget_Media_Image::get_instance_schema()](https://developer.wordpress.org/reference/classes/wp_widget_media_image/get_instance_schema/)
 * Get schema for properties of a widget instance (item).
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/get_instance_schema/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/get_instance_schema/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media-image.php:65](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media-image.php#L65-L168)
 * method[WP_Widget_Media_Image::render_media()](https://developer.wordpress.org/reference/classes/wp_widget_media_image/render_media/)
 * Render the media on the frontend.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/render_media/#used-by)
   | Uses [14 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/render_media/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media-image.php:177](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media-image.php#L177-L305)
 * method[WP_Widget_Media_Image::enqueue_admin_scripts()](https://developer.wordpress.org/reference/classes/wp_widget_media_image/enqueue_admin_scripts/)
 * Loads the required media files for the media manager and scripts for media widgets.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/enqueue_admin_scripts/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/enqueue_admin_scripts/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media-image.php:312](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media-image.php#L312-L343)
 * method[WP_Widget_Media_Image::render_control_template_scripts()](https://developer.wordpress.org/reference/classes/wp_widget_media_image/render_control_template_scripts/)
 * Render form template scripts.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/render_control_template_scripts/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/render_control_template_scripts/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media-image.php:350](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media-image.php#L350-L403)
 * class[WP_Widget_Media](https://developer.wordpress.org/reference/classes/wp_widget_media/)
 * Core class that implements a media widget.
 * Used by [4 functions](https://developer.wordpress.org/reference/classes/wp_widget_media/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_widget_media/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media.php:17](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media.php#L17-L516)
 * method[WP_Widget_Media::__construct()](https://developer.wordpress.org/reference/classes/wp_widget_media/__construct/)
 * Constructor.
 * Used by [4 functions](https://developer.wordpress.org/reference/classes/wp_widget_media/__construct/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/classes/wp_widget_media/__construct/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media.php:72](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media.php#L72-L93)
 * class[WP_Widget_Media_Image](https://developer.wordpress.org/reference/classes/wp_widget_media_image/)
 * Core class that implements an image widget.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_widget_media_image/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media-image.php:18](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media-image.php#L18-L404)
 * method[WP_Widget_Media_Image::__construct()](https://developer.wordpress.org/reference/classes/wp_widget_media_image/__construct/)
 * Constructor.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/__construct/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/classes/wp_widget_media_image/__construct/#uses)
   | Source: [wp-includes/widgets/class-wp-widget-media-image.php:25](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/widgets/class-wp-widget-media-image.php#L25-L52)
 * hook[minimum_site_name_length](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/)
 * Filters the minimum site name length required when validating a site signup.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/minimum_site_name_length/#uses)
   | Source: [wp-includes/ms-functions.php:682](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L682-L682)
 * hook[signup_site_meta](https://developer.wordpress.org/reference/hooks/signup_site_meta/)
 * Filters the metadata for a site signup.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/signup_site_meta/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/signup_site_meta/#uses)
   | Source: [wp-includes/ms-functions.php:822](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L822-L822)
 * hook[signup_user_meta](https://developer.wordpress.org/reference/hooks/signup_user_meta/)
 * Filters the metadata for a user signup.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/signup_user_meta/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/signup_user_meta/#uses)
   | Source: [wp-includes/ms-functions.php:888](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L888-L888)
 * hook[post_date_column_status](https://developer.wordpress.org/reference/hooks/post_date_column_status/)
 * Filters the status text of the post.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/post_date_column_status/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/post_date_column_status/#uses)
   | Source: [wp-admin/includes/class-wp-posts-list-table.php:1333](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-posts-list-table.php#L1333-L1333)
 * hook[deleted_blog](https://developer.wordpress.org/reference/hooks/deleted_blog/)
 * Fires after the site is deleted from the network.
 * Used by [2 functions](https://developer.wordpress.org/reference/hooks/deleted_blog/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/deleted_blog/#uses)
   | Source: [wp-includes/ms-site.php:294](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-site.php#L294-L294)
 * function[wp_ajax_get_community_events()](https://developer.wordpress.org/reference/functions/wp_ajax_get_community_events/)
 * Handles Ajax requests for community events
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_ajax_get_community_events/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/wp_ajax_get_community_events/#uses)
   | Source: [wp-admin/includes/ajax-actions.php:386](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/ajax-actions.php#L386-L431)
 * function[wp_print_community_events_markup()](https://developer.wordpress.org/reference/functions/wp_print_community_events_markup/)
 * Prints the markup for the Community Events section of the Events and News Dashboard
   widget.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_print_community_events_markup/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/wp_print_community_events_markup/#uses)
   | Source: [wp-admin/includes/dashboard.php:1372](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/dashboard.php#L1372-L1432)
 * function[wp_print_community_events_templates()](https://developer.wordpress.org/reference/functions/wp_print_community_events_templates/)
 * Renders the events templates for the Event and News widget.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_print_community_events_templates/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_print_community_events_templates/#uses)
   | Source: [wp-admin/includes/dashboard.php:1439](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/dashboard.php#L1439-L1535)
 * function[wp_dashboard_events_news()](https://developer.wordpress.org/reference/functions/wp_dashboard_events_news/)
 * Renders the Events and News dashboard widget.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_dashboard_events_news/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_dashboard_events_news/#uses)
   | Source: [wp-admin/includes/dashboard.php:1318](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/dashboard.php#L1318-L1365)
 * method[WP_Community_Events::format_event_data_time()](https://developer.wordpress.org/reference/classes/wp_community_events/format_event_data_time/)
 * Adds formatted date and time items for each event in an API response.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_community_events/format_event_data_time/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/classes/wp_community_events/format_event_data_time/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:383](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L383-L442)
 * method[WP_Community_Events::trim_events()](https://developer.wordpress.org/reference/classes/wp_community_events/trim_events/)
 * Prepares the event list for presentation.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_community_events/trim_events/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_community_events/trim_events/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:462](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L462-L498)
 * method[WP_Community_Events::maybe_log_events_response()](https://developer.wordpress.org/reference/classes/wp_community_events/maybe_log_events_response/)
 * Logs responses to Events API requests.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_community_events/maybe_log_events_response/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_community_events/maybe_log_events_response/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:510](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L510-L525)
 * class[WP_Community_Events](https://developer.wordpress.org/reference/classes/wp_community_events/)
 * Class WP_Community_Events.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_community_events/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_community_events/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:17](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L17-L526)
 * method[WP_Community_Events::__construct()](https://developer.wordpress.org/reference/classes/wp_community_events/__construct/)
 * Constructor for WP_Community_Events.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_community_events/__construct/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_community_events/__construct/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:54](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L54-L57)
 * method[WP_Community_Events::get_events()](https://developer.wordpress.org/reference/classes/wp_community_events/get_events/)
 * Gets data about events near a particular location.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_community_events/get_events/#used-by)
   | Uses [14 functions](https://developer.wordpress.org/reference/classes/wp_community_events/get_events/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:91](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L91-L174)
 * method[WP_Community_Events::get_request_args()](https://developer.wordpress.org/reference/classes/wp_community_events/get_request_args/)
 * Builds an array of args to use in an HTTP request to the w.org Events API.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_community_events/get_request_args/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_community_events/get_request_args/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:185](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L185-L214)
 * method[WP_Community_Events::get_unsafe_client_ip()](https://developer.wordpress.org/reference/classes/wp_community_events/get_unsafe_client_ip/)
 * Determines the user’s actual IP address and attempts to partially anonymize an
   IP address by converting it to a network ID.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_community_events/get_unsafe_client_ip/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_community_events/get_unsafe_client_ip/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:241](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L241-L280)
 * method[WP_Community_Events::coordinates_match()](https://developer.wordpress.org/reference/classes/wp_community_events/coordinates_match/)
 * Test if two pairs of latitude/longitude coordinates match each other.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_community_events/coordinates_match/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_community_events/coordinates_match/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:291](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L291-L297)
 * method[WP_Community_Events::get_events_transient_key()](https://developer.wordpress.org/reference/classes/wp_community_events/get_events_transient_key/)
 * Generates a transient key based on user location.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_community_events/get_events_transient_key/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_community_events/get_events_transient_key/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:312](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L312-L322)
 * method[WP_Community_Events::cache_events()](https://developer.wordpress.org/reference/classes/wp_community_events/cache_events/)
 * Caches an array of events data from the Events API.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_community_events/cache_events/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_community_events/cache_events/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:333](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L333-L343)
 * method[WP_Community_Events::get_cached_events()](https://developer.wordpress.org/reference/classes/wp_community_events/get_cached_events/)
 * Gets cached events.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_community_events/get_cached_events/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_community_events/get_cached_events/#uses)
   | Source: [wp-admin/includes/class-wp-community-events.php:355](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/class-wp-community-events.php#L355-L367)

 [Previous Page](https://developer.wordpress.org/reference/since/4.8.0/page/2/?output_format=md)

[1](https://developer.wordpress.org/reference/since/4.8.0/?output_format=md) [2](https://developer.wordpress.org/reference/since/4.8.0/page/2/?output_format=md)
3 [4](https://developer.wordpress.org/reference/since/4.8.0/page/4/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/since/4.8.0/page/4/?output_format=md)