WordPress action hook · part of WordPress core

wp_playlist_scripts

A WordPress core action that 6 plugins also fire themselves, running on 24K+ sites between them.

How to use wp_playlist_scripts

It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'wp_playlist_scripts', function( $atts, $atts2 ) {
	// Your code runs here.
}, 10, 2 );

Argument names come from Seriously Simple Podcasting's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

6 plugins that fire wp_playlist_scripts

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Seriously Simple Podcasting icon Seriously Simple Podcasting20,000+ installs do_action( 'wp_playlist_scripts', $atts['type'], $atts['style'] ) php/classes/controllers/class-players-controller.php:420
  2. MediaPress icon MediaPress3,000+ installs do_action( 'wp_playlist_scripts' ) assets/mpp-assets-loader.php:134
  3. Themify Audio Dock icon Themify Audio Dock900+ installs do_action( 'wp_playlist_scripts', $atts['type'], $atts['style'] ) init.php:173
  4. Bg Playlist icon Bg Playlist40+ installs do_action( 'wp_playlist_scripts', 'audio', $option['style'] ) bg_playlist.php:475
  5. WebVTT icon WebVTT10+ installs do_action( 'wp_playlist_scripts', $atts['type'], $atts['style'] ) includes/class-webvtt.php:345
  6. Albums WooCommerce Plugin icon Albums WooCommerce Plugin10+ installs do_action( 'wp_playlist_scripts', $safe_type, $safe_style ) templates/single-product/add-to-cart/variable_album.php:147

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.