WP_Customize_Media_Control::enqueue() WordPress Method

The enqueue() method of the WP_Customize_Media_Control class is used to enqueue scripts and styles for media controls. This includes the media-views and media-editor scripts, as well as the media control CSS.

WP_Customize_Media_Control::enqueue() #

Enqueue control related scripts/styles.


Source

File: wp-includes/customize/class-wp-customize-media-control.php

	public function enqueue() {
		wp_enqueue_media();
	}


Top ↑

Changelog

Changelog
VersionDescription
4.2.0Moved from WP_Customize_Upload_Control.
3.4.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.