Posted on August 8, 2013 , Last Modified on: August 8, 2013
BuddyBlog change settings example to post to single category and some more
add_filter('buddyblog_post_form_settings', 'buddyblog_custom_form_settings');
function buddyblog_custom_form_settings( $settings ){
unset( $settings['upload_count'] );
unset( $settings['tax'][ 'post_tag'] );//no need to show posts tag
$category = get_category_by_slug( 'blog' );
$settings['tax']['category']['include'] = array( 0 => $category->term_id );
return $settings;
}
@buddyblog #buddypress #buddyblog