I have a Wordpress Multisite installation with Buddypress. I would want to restrict people from creating another blog so that they have only one blog.

How do I achieve this?


Check the user meta key primary_blog:

$user_has_blog = get_user_meta( $user_id, 'primary_blog', TRUE );

For users without a blog $user_has_blog will be false now. For other users $user_has_blog is the blog ID.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.