bp_get_taxonomy_term_site_id( string $taxonomy = '' )
Gets the ID of the site that BP should use for taxonomy term storage.
Description
Defaults to the root blog ID.
Parameters
- $taxonomy
-
(Optional) Taxonomy slug to check for.
Default value: ''
Return
(int)
Source
File: bp-core/bp-core-taxonomy.php
function bp_get_taxonomy_term_site_id( $taxonomy = '' ) {
$site_id = bp_get_root_blog_id();
/**
* Filters the ID of the site where BP should store taxonomy terms.
*
* @since BuddyPress 2.6.0
*
* @param int $site_id Site ID to cehck for.
* @param string $taxonomy Taxonomy slug to check for.
*/
return (int) apply_filters( 'bp_get_taxonomy_term_site_id', $site_id, $taxonomy );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.