bp_blogs_fetch_latest_post_thumbnails

bp_blogs_fetch_latest_post_thumbnails

Hook Type: filter

See hook in core

Displaying hooks found in version: buddypress.14.3.3

apply_filters('bp_blogs_fetch_latest_post_thumbnails') is found 1 times:

  • /bp-blogs/classes/class-bp-blogs-blog.php line 645
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    *
     * @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 ) ) {