Skip to content

Commit 5e85a49

Browse files
committed
Update the update_count_callback docs. see #18986.
git-svn-id: https://develop.svn.wordpress.org/trunk@19037 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8e97202 commit 5e85a49

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

wp-includes/taxonomy.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,10 @@ function is_taxonomy_hierarchical($taxonomy) {
255255
* hierarchical - has some defined purpose at other parts of the API and is a
256256
* boolean value.
257257
*
258-
* update_count_callback - works much like a hook, in that it will be called
259-
* when the count is updated.
258+
* update_count_callback - works much like a hook, in that it will be called when the count is updated.
259+
* Defaults to _update_post_term_count() for taxonomies attached to post types, which then confirms
260+
* that the objects are then published before counting them.
261+
* Defaults to _update_generic_term_count() for taxonomies attached to other object types, such as links.
260262
*
261263
* rewrite - false to prevent rewrite, or array('slug'=>$slug) to customize
262264
* permastruct; default will use $taxonomy as slug.

0 commit comments

Comments
 (0)