_update_posts_count_on_delete


_update_posts_count_on_delete ( $post_id, $post )

Parameters:
  • (int) post_id Post ID.
  • (WP_Post) post Post object.
Defined at:
Change Log:
  • 6: .

Description

Handler for updating the current site's posts count when a post is deleted.

Related Functions

update_posts_count, _update_post_term_count, _update_posts_count_on_transition_post_status, wp_update_comment_count_now, wp_update_term_count_now

Top Google Results

User discussions

wpseek mobile