get_enclosed WordPress Filter Hook

The get_enclosed hook is used to retrieve a list of all enclosures (e.g. audio or video files) from a post. This can be useful for displaying a list of enclosures in the front-end, or for programmatically working with enclosures in the back-end.

apply_filters( 'get_enclosed', string[] $pung, int $post_id ) #

Filters the list of enclosures already enclosed for the given post.


Parameters

$pung

(string[])Array of enclosures for the given post.

$post_id

(int)Post ID.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.0.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