WP_Metadata_Lazyloader::lazyload_comment_meta( mixed $check ): mixed

This method has been deprecated. Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead.

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

VersionDescription
6.3.0Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead.
4.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.