Updates term count based on number of objects.
Description
Default callback for the ‘link_category’ taxonomy.
Parameters
$terms
int[]required- List of term taxonomy IDs.
$taxonomy
WP_Taxonomyrequired- Current taxonomy object of terms.
Source
* Updates term count based on number of objects.
*
* Default callback for the 'link_category' taxonomy.
*
* @since 3.3.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int[] $terms List of term taxonomy IDs.
* @param WP_Taxonomy $taxonomy Current taxonomy object of terms.
*/
function _update_generic_term_count( $terms, $taxonomy ) {
global $wpdb;
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.