_update_term_count_on_transition_post_status
- %1$s is private and should not be used in themes or plugins directly.
_update_term_count_on_transition_post_status ( $new_status, $old_status, $post )
Access:Parameters:- (string) new_status New post status.
- (string) old_status Old post status.
- (WP_Post) post Post object.
Defined at: - Introduced in WordPress: 3.3.0
- Deprecated in WordPress: —
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.