wp_lazyload_comment_meta()
Queue comment meta for lazy-loading.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_lazyload_comment_meta( $comment_ids );
- $comment_ids(array) (required)
- List of comment IDs.
Changelog
| Since 6.3.0 | Introduced. |
wp_lazyload_comment_meta() wp lazyload comment meta code WP 7.0
function wp_lazyload_comment_meta( array $comment_ids ) {
if ( empty( $comment_ids ) ) {
return;
}
$lazyloader = wp_metadata_lazyloader();
$lazyloader->queue_objects( 'comment', $comment_ids );
}