Documentation How to make terms and taxonomies not global on WordPress.com

How to make terms and taxonomies not global on WordPress.com

By default WordPress.com uses a little known (and now off by default) feature of WordPress Multisite called Globalized terms.  This means that terms are shared across sites. To remove your taxonomy from the global taxonomy array you can use the wpcom_is_globalized_taxonomy filter, e.g.

add_action( 'wpcom_is_globalized_taxonomy', function( $is_globalized, $taxonomy_name ) {
    if ( 'my_taxonomy' === $taxonomy_name )
        $is_globalized = false;
    return $is_globalized;
}, 10, 2 );

To disable Globalized terms feature for all taxonomies at once, use our helper function in theme’s functions.php:

wpcom_vip_disable_global_terms();