_update_generic_term_count( int[] $terms, WP_Taxonomy $taxonomy )

In this article

Updates term count based on number of objects.

Description

Default callback for the ‘link_category’ taxonomy.

Parameters

$termsint[]required
List of term taxonomy IDs.
$taxonomyWP_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

VersionDescription
3.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.