bp_get_default_taxonomies()

Returns default BuddyPress taxonomies.


Return Return

(array) The BuddyPress default taxonomies.


Source Source

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

function bp_get_default_taxonomies() {
	$taxonomies = array(
		// Member Type.
		bp_get_member_type_tax_name() => array(
			'object'    => 'user',
			'component' => 'members',
			'args'      => bp_get_member_type_tax_args(),
		),
		// Email type.
		bp_get_email_tax_type()       => array(
			'object'    => bp_get_email_post_type(),
			'component' => 'core',
			'args'      => bp_get_email_tax_type_args(),
		),
	);

	/**
	 * This filter should only be used by built-in BuddyPress Components.
	 *
	 * @since 7.0.0
	 *
	 * @param array $taxonomies The taxonomy arguments used for WordPress registration.
	 */
	return apply_filters( 'bp_get_default_taxonomies', $taxonomies );
}


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.