enclosure_links хук-фильтр . WP 4.4.0
Filters the list of enclosure links before querying the database.
Allows for the addition and/or removal of potential enclosures to save to postmeta before checking the database for existing enclosures.
Использование
add_filter( 'enclosure_links', 'filter_function_name_6147', 10, 2 ); function filter_function_name_6147( $post_links, $post_ID ){ // filter... return $post_links; }
- $post_links(строка[])
- An array of enclosure links.
- $post_ID(число)
- Post ID.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
enclosure_links
wp-includes/functions.php 899
$post_links = apply_filters( 'enclosure_links', $post_links, $post->ID );