W3cubDocs

/WordPress

wp_lazyload_term_meta( array $term_ids )

Queue term meta for lazy-loading.

Parameters

$term_idsarrayrequired
List of term IDs.

Source

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

Changelog

Version Description
6.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_lazyload_term_meta