Quantcast
Channel: bbPress.org » All Posts
Viewing all articles
Browse latest Browse all 3638

Reply To: change css class of function with filter hook

$
0
0

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');

Viewing all articles
Browse latest Browse all 3638

Trending Articles