W3cubDocs

/WordPress

WP_Metadata_Lazyloader::lazyload_comment_meta( mixed $check ): mixed

Lazy-loads comment meta for queued comments.

Description

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.

Parameters

$checkmixedrequired
The $check param passed from the 'get_comment_metadata' hook.

Return

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

Source

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' );
}

Changelog

Version Description
6.3.0 Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead.
4.5.0 Introduced.

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