get_enclosed хук-фильтр . WP 2.0.0
Filters the list of enclosures already enclosed for the given post.
Использование
add_filter( 'get_enclosed', 'filter_function_name_9738', 10, 2 ); function filter_function_name_9738( $pung, $post_id ){ // filter... return $pung; }
- $pung(строка[])
- Array of enclosures for the given post.
- $post_id(число)
- Post ID.
Список изменений
С версии 2.0.0 | Введена. |
Где вызывается хук
get_enclosed
wp-includes/post.php 5053
return apply_filters( 'get_enclosed', $pung, $post_id );