Function: wp_term_is_shared

wp_term_is_shared( integer $term_id )

Determine whether a term is shared between multiple taxonomies.

Shortcut: wtis

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Shared taxonomy terms began to be split in 4.3, but failed cron tasks or other delays in upgrade routines may cause shared terms to remain.

Parameters

Name Type(s) Default Value Description
$term_id integer

Term ID.

Returns

boolean

Returns false if a term is not shared between multiple taxonomies or if splittng shared taxonomy terms is finished.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.