wp_playlist_scripts WordPress Action Hook

The wp_playlist_scripts hook is used to load the necessary scripts for the playlists feature in Wordpress. This hook is called in the admin_enqueue_scripts action.

do_action( 'wp_playlist_scripts', string $type, string $style ) #

Prints and enqueues playlist scripts, styles, and JavaScript templates.


Parameters

$type

(string)Type of playlist. Possible values are 'audio' or 'video'.

$style

(string)The 'theme' for the playlist. Core provides 'light' and 'dark'.


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.9.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.

Show More