bp_register_default_taxonomies()
Register our default taxonomies.
Description
Source
File: bp-core/bp-core-taxonomy.php
function bp_register_default_taxonomies() { // Profile Type. register_taxonomy( bp_get_member_type_tax_name(), 'user', array( 'public' => false, ) ); // Email type. register_taxonomy( bp_get_email_tax_type(), bp_get_email_post_type(), apply_filters( 'bp_register_email_tax_type', array( 'description' => __( 'BuddyBoss email types', 'buddyboss' ), 'labels' => bp_get_email_tax_type_labels(), 'meta_box_cb' => 'bp_email_tax_type_metabox', 'public' => false, 'query_var' => false, 'rewrite' => false, 'show_in_menu' => false, 'show_tagcloud' => false, 'show_ui' => bp_is_root_blog() && bp_current_user_can( 'bp_moderate' ), ) ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.2.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.