SHARE
TWEET

WP-Login Redirect ke Custom Login Frontpage

pustakakoran Apr 23rd, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action('init','custom_login');
  2.  
  3. function custom_login(){
  4.  global $pagenow;
  5.  if( 'wp-login.php' == $pagenow && $_GET['action']!="logout") {
  6.   wp_redirect('http://YOURSITE.com/');
  7.   exit();
  8.  }
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top