_prime_comment_caches

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use update_comment_cache() instead.

SummerySummery

Adds any comments from the given IDs to the cache that do not already exist in cache.

Syntax

_prime_comment_caches( int[] $comment_ids, bool $update_meta_cache = true )

ParametersParameters

$comment_ids

(int[]) (Required) Array of comment IDs.

$update_meta_cache

(bool) (Optional) Whether to update the meta cache.

Default value: true

SourceSource

File: wp-includes/comment.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.

See alsoSee also

Scroll to Top