WP_Widget_Media::enqueue_admin_scripts()

In this article

Loads the required scripts and styles for the widget control.

Source

public function enqueue_admin_scripts() {
	wp_enqueue_media();
	wp_enqueue_script( 'media-widgets' );
}

Changelog

VersionDescription
4.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.