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(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.2.0 | Moved from WP_Customize_Upload_Control. |
3.4.0 | Introduced. |