Title: wp_lazyload_term_meta
Published: August 8, 2023
Last modified: August 20, 2026

---

# wp_lazyload_term_meta( array $term_ids )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#wp--skip-link--target)

Queue term meta for lazy-loading.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#parameters)󠁿

 `$term_ids`arrayrequired

List of term IDs.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#source)󠁿

    ```php
    function wp_lazyload_term_meta( array $term_ids ) {
    	if ( empty( $term_ids ) ) {
    		return;
    	}
    	$lazyloader = wp_metadata_lazyloader();
    	$lazyloader->queue_objects( 'term', $term_ids );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/taxonomy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/taxonomy.php#L1508)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/taxonomy.php#L1508-L1514)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_metadata_lazyloader()](https://developer.wordpress.org/reference/functions/wp_metadata_lazyloader/)`wp-includes/meta.php` |

Retrieves the queue for lazy-loading metadata.

  |

| Used by | Description | 
| [WP_Term_Query::get_terms()](https://developer.wordpress.org/reference/classes/wp_term_query/get_terms/)`wp-includes/class-wp-term-query.php` |

Retrieves the query results.

  | 
| [_prime_term_caches()](https://developer.wordpress.org/reference/functions/_prime_term_caches/)`wp-includes/taxonomy.php` |

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

  | 
| [wp_queue_posts_for_term_meta_lazyload()](https://developer.wordpress.org/reference/functions/wp_queue_posts_for_term_meta_lazyload/)`wp-includes/post.php` |

Queues posts for lazy-loading of term meta.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.3.0](https://developer.wordpress.org/reference/since/6.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_lazyload_term_meta%2F)
before being able to contribute a note or feedback.