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.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |