_prime_term_caches

Advertisement

Private Access Private 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.

Summery Summery

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

Syntax Syntax

_prime_term_caches( array $term_ids, bool $update_meta_cache = true )

Parameters Parameters

$term_ids

(array) (Required) Array of term IDs.

$update_meta_cache

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

Default value: true

Source Source

File: wp-includes/taxonomy.php

				return $term;
			}
			$use_id = true;
		}

		// Don't recurse if we've already identified the term as a child - this indicates a loop.
		if ( isset( $ancestors[ $term->term_id ] ) ) {
			continue;
		}

		if ( (int) $term->parent === $term_id ) {
			if ( $use_id ) {
				$term_list[] = $term->term_id;
			} else {

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.