wp_enqueue_media
wp_enqueue_media ( $args = array() )
Parameters:- (array) args { Arguments for enqueuing media scripts. @type int|WP_Post $post Post ID or post object. }
Defined at: - Introduced in WordPress: 3.5.0
- Deprecated in WordPress: —
Description
Enqueues all scripts, styles, settings, and templates necessary to use
all media JS APIs.