add_filter( 'paginate_links', 'bbp_add_view_all' );
add_filter( 'bbp_get_topic_permalink', 'bbp_add_view_all' );
add_filter( 'bbp_get_reply_permalink', 'bbp_add_view_all' );
add_filter( 'bbp_get_forum_permalink', 'bbp_add_view_all' );
// wp_filter_kses on new/edit topic/reply title
add_filter( 'bbp_new_reply_pre_title', 'wp_filter_kses' );
add_filter( 'bbp_new_topic_pre_title', 'wp_filter_kses' );
add_filter( 'bbp_edit_reply_pre_title', 'wp_filter_kses' );
add_filter( 'bbp_edit_topic_pre_title', 'wp_filter_kses' );
// balanceTags, wp_filter_kses and wp_rel_nofollow on new/edit topic/reply text
add_filter( 'bbp_new_reply_pre_content', 'balanceTags' );
add_filter( 'bbp_new_reply_pre_content', 'wp_rel_nofollow' );
add_filter( 'bbp_new_reply_pre_content', 'wp_filter_kses' );
add_filter( 'bbp_new_topic_pre_content', 'balanceTags' );
add_filter( 'bbp_new_topic_pre_content', 'wp_rel_nofollow' );
add_filter( 'bbp_new_topic_pre_content', 'wp_filter_kses' );
add_filter( 'bbp_edit_reply_pre_content', 'balanceTags' );
add_filter( 'bbp_edit_reply_pre_content', 'wp_rel_nofollow' );