wpseo_sitemap_urlimages хук-фильтр . Yoast 1.0
Filter images to be included for the post in XML sitemap.
Использование
add_filter( 'wpseo_sitemap_urlimages', 'filter_function_name_8425', 10, 2 ); function filter_function_name_8425( $images, $post_id ){ // filter... return $images; }
- $images(массив)
- Array of image items.
- $post_id(число)
- ID of the post.
Где вызывается хук
wpseo_sitemap_urlimages
yoast/inc/sitemaps/class-sitemap-image-parser.php 135
$images = apply_filters( 'wpseo_sitemap_urlimages', $images, $post->ID );