title: How to check if current user has a blog/site in WordPress Multisite?
body: <p>I would like to know how can I modify the following code to check if the current user has a site/blog already set up on my wordpress network??</p>
  
  <pre><code>&lt;?php 
  global $wp_roles;
  foreach ( $wp_roles-&gt;role_names as $role =&gt; $name ) :
      if ( current_user_can( $role ) &amp;&amp; $role == 'administrator') { 
          if ( class_exists( 'MarketpressFadminWidget' ) ) { 
              $mp_frontend_settings = get_option( 'mp_frontend_settings' );
              $mp_frontend_settings = unserialize($mp_frontend_settings);
              $adminpage = $mp_frontend_settings['page_id'];
              $permalink = get_permalink($adminpage);
              ?&gt;
              // My Links / Html Content
              &lt;?php 
          } 
  </code></pre>