W3cubDocs

/WordPress

apply_filters( 'post_playlist', string $output, array $attr, int $instance )

Filters the playlist output.

Description

Returning a non-empty value from the filter will short-circuit generation of the default playlist output, returning the passed value instead.

Parameters

$output

(string) Playlist output. Default empty.

$attr

(array) An array of shortcode attributes.

$instance

(int) Unique numeric ID of this playlist shortcode instance.

Source

File: wp-includes/media.php

View on Trac

Changelog

Version Description
4.2.0 The $instance parameter was added.
3.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_playlist