post_playlist хук-фильтр . WP 3.9.0
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.
Использование
add_filter( 'post_playlist', 'filter_function_name_4271', 10, 3 ); function filter_function_name_4271( $output, $attr, $instance ){ // filter... return $output; }
- $output(строка)
- Playlist output.
По умолчанию: '' - $attr(массив)
- An array of shortcode attributes.
- $instance(число)
- Unique numeric ID of this playlist shortcode instance.
Список изменений
С версии 3.9.0 | Введена. |
С версии 4.2.0 | The $instance parameter was added. |
Где вызывается хук
post_playlist
wp-includes/media.php 2546
$output = apply_filters( 'post_playlist', '', $attr, $instance );