_update_term_count_on_transition_post_status


_update_term_count_on_transition_post_status ( $new_status, $old_status, $post )

Access:
  • private
Parameters:
  • (string) $new_status New post status.
  • (string) $old_status Old post status.
  • (WP_Post) $post Post object.
Defined at:

Description

Update the custom taxonomies' term counts when a post's status is changed.

For example, default posts term counts (for custom taxonomies) don't include private / draft posts.

Related Functions

_update_posts_count_on_transition_post_status, wp_transition_post_status, _transition_post_status, wp_update_term_count_now, wp_transition_comment_status

Top Google Results

User discussions

wpseek mobile