wp_playlist_scripts
The WordPress Core wp playlist scripts hook.
Description
Parameters (1)
- 0. $wp_playlist_scripts (string) =>
'wp_playlist_scripts'
- The
wp
playlist scripts.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'wp_playlist_scripts', $wp_playlist_scripts );
- The following example is for adding a hook callback.
- // define the wp_playlist_scripts callback
- function action_wp_playlist_scripts( $wp_playlist_scripts ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'wp_playlist_scripts', 'action_wp_playlist_scripts', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'wp_playlist_scripts', 'action_wp_playlist_scripts', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /wp-includes/default-filters.php
- add_action( 'wp_playlist_scripts', 'wp_playlist_scripts' );
- /wp-includes/media.php
- do_action( 'wp_playlist_scripts', $atts['type'], $atts['style'] );