Filter hook 'post_playlist'
in WP Core File wp-includes/media.php at line 2941
Description
Filters the playlist output. Returning a non-empty value from the filter will short-circuit generation of the default playlist output, returning the passed value instead.
Occurrences
Filename |
Line Number |
wp-includes/media.php |
2941 |
Parameters
Type |
Name |
Description |
string |
$output |
Playlist output. Default empty. |
array |
$attr |
An array of shortcode attributes. |
int |
$instance |
Unique numeric ID of this playlist shortcode instance. |
PHP Doc
/**
* Filters the playlist output.
*
* Returning a non-empty value from the filter will short-circuit generation
* of the default playlist output, returning the passed value instead.
*
* @since 3.9.0
* @since 4.2.0 The `$instance` parameter was added.
*
* @param string $output Playlist output. Default empty.
* @param array $attr An array of shortcode attributes.
* @param int $instance Unique numeric ID of this playlist shortcode instance.
*/