W3cubDocs

/WordPress

wp_lazyload_comment_meta( array $comment_ids )

Queue comment meta for lazy-loading.

Parameters

$comment_idsarrayrequired
List of comment IDs.

Source

function wp_lazyload_comment_meta( array $comment_ids ) {
	if ( empty( $comment_ids ) ) {
		return;
	}
	$lazyloader = wp_metadata_lazyloader();
	$lazyloader->queue_objects( 'comment', $comment_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_comment_meta