wp_lazyload_comment_meta

函式
wp_lazyload_comment_meta ( $comment_ids )
引數
  • (array) $comment_ids List of comment IDs.
    Required:
定義位置
相關方法
wp_lazyload_site_metawp_lazyload_term_metaadd_comment_metaupdate_comment_metawp_allow_comment
引入
6.3.0
棄用
-

佇列評論後設資料用於延遲載入。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_lazyload_comment_meta( array $comment_ids ) {
if ( empty( $comment_ids ) ) {
return;
}
$lazyloader = wp_metadata_lazyloader();
$lazyloader->queue_objects( 'comment', $comment_ids );
}
function wp_lazyload_comment_meta( array $comment_ids ) { if ( empty( $comment_ids ) ) { return; } $lazyloader = wp_metadata_lazyloader(); $lazyloader->queue_objects( 'comment', $comment_ids ); }
function wp_lazyload_comment_meta( array $comment_ids ) {
	if ( empty( $comment_ids ) ) {
		return;
	}
	$lazyloader = wp_metadata_lazyloader();
	$lazyloader->queue_objects( 'comment', $comment_ids );
}

常見問題

FAQs
檢視更多 >