title: Wordpress get_user_meta showing wrong value
body: <p>Hello and thanks for spending the time to try and help me out. I am not experienced at all in PHP. I am attempting to do some custom snippets for my wordpress site. I have done a few already and this one for some reason isn't working. I use Formidable Forms on my site to sign users up and at the time of sign up there is a custom meta field created called &quot;info&quot; and the value is set to &quot;no&quot;. This field is only changed when the user creates an entry in my customer-info form. Then the meta value is changed to &quot;yes&quot;. This snippet is to force them to fill out the info form when they log in and direct them to that page but for some reason the value I get from the user meta is &quot;no&quot;. which is wrong. any ideas? Code im using:</p>
  <pre><code>function my_logged_in_redirect() {
  $userid = get_current_user_id();
  $info = get_user_meta($userid, 'info', true);
  $loggedin = is_user_logged_in();
  if (is_page(1795)){
      if ($loggedin == true &amp;&amp; $info = 'no'){
          wp_redirect(home_url('/dashboard/account-information'));
      }
      else if ($loggedin == true &amp;&amp; $info = 'yes'){
          wp_redirect(home_url('/dashboard'));
      }
      else if ($loggedin == false){
          wp_redirect(home_url());
      }
  }
  </code></pre>
  <p>}
  add_action( 'template_redirect', 'my_logged_in_redirect' );</p>