| 29 | | if ( bp_is_root_blog() ) { |
| 30 | | register_taxonomy( |
| 31 | | bp_get_email_tax_type(), |
| 32 | | bp_get_email_post_type(), |
| 33 | | apply_filters( 'bp_register_email_tax_type', array( |
| 34 | | 'description' => _x( 'BuddyPress email types', 'email type taxonomy description', 'buddypress' ), |
| 35 | | 'labels' => bp_get_email_tax_type_labels(), |
| 36 | | 'meta_box_cb' => 'bp_email_tax_type_metabox', |
| 37 | | 'public' => false, |
| 38 | | 'query_var' => false, |
| 39 | | 'rewrite' => false, |
| 40 | | 'show_in_menu' => false, |
| 41 | | 'show_tagcloud' => false, |
| 42 | | 'show_ui' => bp_current_user_can( 'bp_moderate' ), |
| 43 | | ) ) |
| 44 | | ); |
| 45 | | } |
| | 29 | register_taxonomy( |
| | 30 | bp_get_email_tax_type(), |
| | 31 | bp_get_email_post_type(), |
| | 32 | apply_filters( 'bp_register_email_tax_type', array( |
| | 33 | 'description' => _x( 'BuddyPress email types', 'email type taxonomy description', 'buddypress' ), |
| | 34 | 'labels' => bp_get_email_tax_type_labels(), |
| | 35 | 'meta_box_cb' => 'bp_email_tax_type_metabox', |
| | 36 | 'public' => false, |
| | 37 | 'query_var' => false, |
| | 38 | 'rewrite' => false, |
| | 39 | 'show_in_menu' => false, |
| | 40 | 'show_tagcloud' => false, |
| | 41 | 'show_ui' => bp_is_root_blog() && bp_current_user_can( 'bp_moderate' ), |
| | 42 | ) ) |
| | 43 | ); |