Function: update_post_thumbnail_cache

update_post_thumbnail_cache( WP_Query $wp_query )

Update cache for thumbnails in the current loop.

Parameters

Name Type(s) Default Value Description
$wp_query WP_Query null

Optional. A WP_Query instance. Defaults to the $wp_query global.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.