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()
Return Return
(array) The types of the given taxonomy.
Source Source
File: bp-core/bp-core-functions.php
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |