get_enclosed filter-hook . WP 2.0.0
Filters the list of enclosures already enclosed for the given post.
Usage
add_filter( 'get_enclosed', 'filter_function_name_270', 10, 2 ); function filter_function_name_270( $pung, $post_id ){ // filter... return $pung; }
- $pung(string[])
- Array of enclosures for the given post.
- $post_id(int)
- Post ID.
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
get_enclosed
wp-includes/post.php 5053
return apply_filters( 'get_enclosed', $pung, $post_id );