wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
wp_queue_comments_for_comment_meta_lazyload is deprecated since version 6.3.0!
Alternative: Ver página de detalhe para wp_lazyload_comment_meta »" href="https://pt.wpseek.com/function/wp_lazyload_comment_meta/">wp_lazyload_comment_meta()
Alternative: Ver página de detalhe para wp_lazyload_comment_meta »" href="https://pt.wpseek.com/function/wp_lazyload_comment_meta/">wp_lazyload_comment_meta()
wp_queue_comments_for_comment_meta_lazyload › WordPress Function
Desde4.5.0
Obsoleto6.3.0
› wp_queue_comments_for_comment_meta_lazyload ( $comments )
Parâmetros: |
|
Definido em: |
|
Codex: |
Queues comments for metadata lazy-loading.
Fonte
function wp_queue_comments_for_comment_meta_lazyload( $comments ) { _deprecated_function( __FUNCTION__, '6.3.0', 'wp_lazyload_comment_meta()' ); // Don't use `wp_list_pluck()` to avoid by-reference manipulation. $comment_ids = array(); if ( is_array( $comments ) ) { foreach ( $comments as $comment ) { if ( $comment instanceof WP_Comment ) { $comment_ids[] = $comment->comment_ID; } } } wp_lazyload_comment_meta( $comment_ids ); }