post_playlist WordPress Filter Hook

The post_playlist hook is triggered when a playlist is created or updated. It allows you to perform an action when a playlist is created or updated.

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.


Top ↑

Parameters

$output

(string)Playlist output. Default empty.

$attr

(array)An array of shortcode attributes.

$instance

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


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.2.0The $instance parameter was added.
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More