bp_get_taxonomy_term_site_id( string $taxonomy = '' )

Gets the ID of the site that BP should use for taxonomy term storage.


Description Description

Defaults to the root blog ID.


Parameters Parameters

$taxonomy

(Optional) Taxonomy slug to check for.

Default value: ''


Top ↑

Return Return

(int)


Top ↑

Source 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 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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