wordpress login outside blog folder


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. require_once('../blog/wp-blog-header.php');
  2. if (is_user_logged_in()){
  3. global $user_identity;get_currentuserinfo();
  4. $user = $user_identity;
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.