Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: limit 1 blog per user


neuromancer2701
Participant

@neuromancer2701

I wanted to removed “Create a Blog!” from of the buddypress admin bar.

This is what I got to work:

wp-content/mu-plugins/bp-core/bp-core-adminbar.php

$blogscheck = get_blogs_of_user($current_user->ID);
if ( ! empty($blogscheck)
{
echo '<a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog">' . __("Create a Blog!", 'buddypress') . '</a>';
}

Skip to toolbar