wp_playlist_scripts() WP 3.9.0
Outputs and enqueue default scripts and styles for playlists.
No Hooks.
Return
````. Null. Nothing.
Usage
wp_playlist_scripts( $type );
- $type(string) (required)
- Type of playlist. Accepts 'audio' or 'video'.
Changelog
Since 3.9.0 | Introduced. |
Code of wp_playlist_scripts() wp playlist scripts WP 5.7
function wp_playlist_scripts( $type ) {
wp_enqueue_style( 'wp-mediaelement' );
wp_enqueue_script( 'wp-playlist' );
?>
<!--[if lt IE 9]><script>document.createElement('<?php echo esc_js( $type ); ?>');</script><![endif]-->
<?php
add_action( 'wp_footer', 'wp_underscore_playlist_templates', 0 );
add_action( 'admin_footer', 'wp_underscore_playlist_templates', 0 );
}