WP_Metadata_Lazyloader::lazyload_comment_meta()publicWP 4.5.0

Deprecated from version 6.3.0. It is no longer supported and can be removed in future releases. Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead.

Lazy-loads comment meta for queued comments.

This method is public so that it can be used as a filter callback. As a rule, there is no need to invoke it directly, from either inside or outside the WP_Query object.

Method of the class: WP_Metadata_Lazyloader{}

No Hooks.

Return

Mixed. The original value of $check, so as not to short-circuit get_comment_metadata().

Usage

$WP_Metadata_Lazyloader = new WP_Metadata_Lazyloader();
$WP_Metadata_Lazyloader->lazyload_comment_meta( $check );
$check(mixed) (required)
The $check param passed from the get_comment_metadata hook.

Changelog

Since 4.5.0 Introduced.
Deprecated since 6.3.0 Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead.

WP_Metadata_Lazyloader::lazyload_comment_meta() code WP 6.5.2

public function lazyload_comment_meta( $check ) {
	_deprecated_function( __METHOD__, '6.3.0', 'WP_Metadata_Lazyloader::lazyload_meta_callback' );
	return $this->lazyload_meta_callback( $check, 0, '', false, 'comment' );
}