wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_wp_update_comment_count_now › WordPress Filter Hooks

Da4.5.0
Deprecaton/a
apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id )
Parametri: (3)
  • (int|null) $new The new comment count. Default null.
    Richiesto:
  • (int) $old The old comment count.
    Richiesto:
  • (int) $post_id Post ID.
    Richiesto:
Definito a:
Codex:

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





Sorgenti

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