How do I know if a user has a blog in WordPress Multisite?

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)