_update_posts_count_on_transition_post_status


_update_posts_count_on_transition_post_status ( $new_status, $old_status, $post = null )

Parameters:
  • (string) new_status The status the post is changing to.
  • (string) old_status The status the post is changing from.
  • (WP_Post) post Post object
Defined at:
Change Log:
  • 4: .

Description

Handler for updating the current site's posts count when a post status changes.

Related Functions

_update_term_count_on_transition_post_status, wp_transition_post_status, _transition_post_status, _update_posts_count_on_delete, _update_blog_date_on_post_publish

Top Google Results

User discussions

wpseek mobile