but function bp_get_email use this code
$args = array(
‘no_found_rows’ => true,
‘numberposts’ => 1,
‘post_status’ => ‘publish’,
‘post_type’ => bp_get_email_post_type(),
‘suppress_filters’ => false,
‘tax_query’ => array(
array(
‘field’ => ‘slug’,
‘taxonomy’ => bp_get_email_tax_type(),
‘terms’ => $email_type,
)
),
);
and searches terms by slug, in my situation $email_type = ‘core-user-registration’, but in database slug is ‘383-102’, and of course I have WP_Error.
The question is why during creating taxonomy terms slug is broken?