wp_playlist_scripts
Prints and enqueues playlist scripts, styles, and JavaScript templates.
Usage
add_action( 'wp_playlist_scripts', 'wp_kama_playlist_scripts_action', 10, 2 );
/**
* Function for `wp_playlist_scripts` action-hook.
*
* @param string $type Type of playlist. Possible values are 'audio' or 'video'.
* @param string $style The 'theme' for the playlist. Core provides 'light' and 'dark'.
*
* @return void
*/
function wp_kama_playlist_scripts_action( $type, $style ){
// action...
}
- $type(string)
- Type of playlist. Possible values are 'audio' or 'video'.
- $style(string)
- The 'theme' for the playlist. Core provides 'light' and 'dark'.
Changelog
| Since 3.9.0 | Introduced. |
Where the hook is called
wp_playlist_scripts
wp-includes/media.php 3266
do_action( 'wp_playlist_scripts', $atts['type'], $atts['style'] );
Where the hook is used in WordPress
wp-includes/default-filters.php 670
add_action( 'wp_playlist_scripts', 'wp_playlist_scripts' );