ok, let’s just redo the whole thing
function custom_callback( $args=array()) {
// Parse arguments against default values
$r = bbp_parse_args( $args, array(
'select_id' => 'bbp_topic_status',
'select_class' => 'my-class',
'tab' => false,
'topic_id' => 0,
'selected' => false
), 'topic_open_close_select' );
// Filter & return
return apply_filters( 'custom_callback', ob_get_clean(), $r, $args );
}
add_filter( 'bbp_get_form_topic_status_dropdown', 'custom_callback');