bp_get_taxonomy_types( string $taxonomy = '', array $types = array() )

Get types for a given BP Taxonomy.


Description Description


Parameters Parameters

$taxonomy

(Optional) The taxonomy to transform terms in types for.

Default value: ''

$types

(Optional) Existing types to merge with the types found into the database. For instance this function is used internally to merge Group/Member types registered using code with the ones created by the administrator from the Group/Member types Administration screen. If not provided, only Types created by the administrator will be returned. Optional.

Default value: array()


Top ↑

Return Return

(array) The types of the given taxonomy.


Top ↑

Source Source

File: bp-core/bp-core-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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