wp_enqueue_media

SummerySummery

Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs.

Syntax

wp_enqueue_media( array $args = array() )

ParametersParameters

$args

(array) (Optional) Arguments for enqueuing media scripts.

  • 'A'
    (int|WP_Post) post object or ID.

Default value: array()

SourceSource

File: wp-includes/media.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Introduced.
Scroll to Top