WPDev.one
Core Function
View Source on Trac ↗

_update_term_count_on_transition_post_status()

_update_term_count_on_transition_post_status( mixed $new_status, mixed $old_status, mixed $post )

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

Parameters 3 required

Name / Type Description
$new_status
string

New post status.

Required
$old_status
string

Old post status.

Required
$post
WP_Post

Post object.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
3.3.0
Source File
wp-includes/post.php
Advertisement