_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

Updates 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, block_core_calendar_update_has_published_post_on_transition_post_status, wp_update_term_count_now

Top Google Results

User discussions

wpseek mobile