bp_email_tax_type_metabox( WP_Post $post, array $box )

Display metabox for email taxonomy type.


Shows the term description in a list, rather than the term name itself.



(WP_Post) (Required) Post object.


(array) (Required) Tags meta box arguments.

  • 'id'
    (string) Meta box ID.
  • 'title'
    (string) Meta box title.
  • 'callback'
    (callable) Meta box display callback.


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

function bp_email_tax_type_metabox( $post, $box ) {
	$r = array(
		'taxonomy' => bp_get_email_tax_type()

	$tax_name = esc_attr( $r['taxonomy'] );
	$taxonomy = get_taxonomy( $r['taxonomy'] );
	<div id="taxonomy-<?php echo $tax_name; ?>" class="categorydiv">
		<div id="<?php echo $tax_name; ?>-all" class="tabs-panel">
			$name = ( $tax_name == 'category' ) ? 'post_category' : 'tax_input[' . $tax_name . ']';
			echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.
			<ul id="<?php echo $tax_name; ?>checklist" data-wp-lists="list:<?php echo $tax_name; ?>" class="categorychecklist form-no-clear">
				<?php wp_terms_checklist( $post->ID, array( 'taxonomy' => $tax_name, 'walker' => new BP_Walker_Category_Checklist ) ); ?>

		<p><?php esc_html_e( 'Choose when this email will be sent.', 'buddyboss' ); ?></p>


Version Description
BuddyPress 2.5.0 Introduced.


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.