WP_Widget_Media::enqueue_admin_scripts()publicWP 4.8.0

Loads the required scripts and styles for the widget control.

Method of the class: WP_Widget_Media{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Widget_Media = new WP_Widget_Media();
$WP_Widget_Media->enqueue_admin_scripts();

Changelog

Since 4.8.0 Introduced.

WP_Widget_Media::enqueue_admin_scripts() code WP 6.6.2

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