Warning: This method has been deprecated. See wp_queue_comments_for_comment_meta_lazyload() instead.

WP_Query::lazyload_comment_meta() WordPress Method

The WP_Query::lazyload_comment_meta() method enables lazy-loading of comment meta data for performance gains. This should be used when querying for comment meta data when the full set of comments is not needed. When used, this method will fetch only the comment ids and then load the meta data as needed.

WP_Query::lazyload_comment_meta( mixed $check, int $comment_id ) #

Lazyload comment meta for comments in the loop.


Parameters

$check

(mixed)(Required)

$comment_id

(int)(Required)


Top ↑

Return

(mixed)


Top ↑

Source

File: wp-includes/class-wp-query.php

	public function lazyload_comment_meta( $check, $comment_id ) {
		_deprecated_function( __METHOD__, '4.5.0' );
		return $check;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.5.0See wp_queue_comments_for_comment_meta_lazyload().
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More