add_filter( 'wpex_get_post_type_cat_tax', function( $tax ) {
if ( 'my-custom-post-type' == get_post_type() ) {
return 'my-custom-taxonomy';
}
return $tax;
} );
add_filter( 'wpex_get_post_type_cat_tax', function( $tax ) {
if ( 'my-custom-post-type' == get_post_type() ) {
return 'my-custom-taxonomy';
}
return $tax;
} );