title: Wordpress : Redirect when user is logged in & on login page
body: <p>I'm tring to redirect my logged users supposing that they will somehow end up on the login page (Redirection to the member area).</p>
  
  <p>Here is my code, located in my functions.php file :</p>
  
  <pre><code>if ( is_user_logged_in() &amp;&amp; is_page(ID) ) {
      wp_redirect('mydomain.com/my-member-area/');
      exit;
  }
  </code></pre>
  
  <p>So, I tried putting the page ID, or the slug between '', but it won't work.</p>
  
  <p>And when I remove the <code>&amp;&amp; is_page(ID)</code> part, redirection works on every single page (logically).</p>