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)
Return
(mixed)
Source
File: wp-includes/class-wp-query.php
public function lazyload_comment_meta( $check, $comment_id ) { _deprecated_function( __METHOD__, '4.5.0' ); return $check; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.5.0 | See wp_queue_comments_for_comment_meta_lazyload(). |
4.4.0 | Introduced. |