bp_blogs_fetch_latest_post_thumbnails
bp_blogs_fetch_latest_post_thumbnails
Appears in: buddypress.11.0.0, buddypress.11.1.0, buddypress.11.2.0, buddypress.11.3.2, buddypress.11.4.0, buddypress.12.0.0, buddypress.12.1.1, buddypress.12.2.0, buddypress.12.3.0, buddypress.12.4.0, buddypress.12.4.1, buddypress.12.5.0, buddypress.12.5.1, buddypress.14.0.0, buddypress.14.1.0, buddypress.14.2.1, buddypress.14.3.3
Hook Type: filter
Displaying hooks found in version: buddypress.14.3.3apply_filters('bp_blogs_fetch_latest_post_thumbnails') is found 1 times:
- /bp-blogs/classes/class-bp-blogs-blog.php line 645641642643644645646647648649650651
*
* @param bool
$fetch_featured_images
Defaults to true.
* @param int
$blog_id
ID of the current blog whose extras are being generated.
*/
if
( apply_filters(
'bp_blogs_fetch_latest_post_thumbnails'
, true,
$paged_blogs
[
$i
]->blog_id ) ) {
$images
=
array
();
switch_to_blog(
$paged_blogs
[
$i
]->blog_id );
// Add URLs to any Featured Image this post might have.
if
( !
empty
(
$paged_blogs
[
$i
]->latest_post ) && has_post_thumbnail(
$paged_blogs
[
$i
]->latest_post->ID ) ) {