Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_wp_update_comment_count_now ›

Desde4.5.0
Obsoleton/a
apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id )
Parâmetros: (3)
  • (int|null) $new The new comment count. Default null.
    Required: Yes
  • (int) $old The old comment count.
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
Definido em:
Codex:

Filters a post's comment count before it is updated in the database.





Fonte

$new = apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id );