×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Elton Disner
Added: Nov 3, 2017 11:13 PM
Views: 1
Tags: login
Se o úsuario estiver logado
  1. <?php
  2. if( ! is_user_logged_in() )
  3.     {
  4.         wp_redirect( home_url( '/wp-login.php' ), 302 );
  5.         exit();
  6.     }
  7. ?>