wp_update_comment_type_batch_size
Filters the comment batch size for updating the comment type.
Использование
add_filter( 'wp_update_comment_type_batch_size', 'wp_kama_update_comment_type_batch_size_filter' ); /** * Function for `wp_update_comment_type_batch_size` filter-hook. * * @param int $comment_batch_size The comment batch size. * * @return int */ function wp_kama_update_comment_type_batch_size_filter( $comment_batch_size ){ // filter... return $comment_batch_size; }
- $comment_batch_size(int)
- The comment batch size.
По умолчанию: 100
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
wp_update_comment_type_batch_size
wp-includes/comment.php 3987
$comment_batch_size = (int) apply_filters( 'wp_update_comment_type_batch_size', 100 );