Directory

wp_playlist_scripts() – Function | Developer.WordPress.org

wp_playlist_scripts( string $type )

In this article

Outputs and enqueues default scripts and styles for playlists.

Parameters

$typestringrequired
Type of playlist. Accepts 'audio' or 'video'.

Source

/**
 * Outputs and enqueues default scripts and styles for playlists.
 *
 * @since 3.9.0
 *
 * @param string $type Type of playlist. Accepts 'audio' or 'video'.
 */
function wp_playlist_scripts( $type ) {
	wp_enqueue_style( 'wp-mediaelement' );

Changelog

VersionDescription
3.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.