Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
4
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Mar
10
comment Get user info outside Wordpress
Wooo! You made my day. Thank you very much :D
Mar
10
comment Get user info outside Wordpress
chdir ($WP_relpath); require_once('./wp-load.php'); require_once('./wp-includes/registration.php'); $wpuser=wp_get_current_user();. I am doing this inside a mediawiki UserLoadFromSession hook, if that helps. I also checked that the directory is successfully changed using getcwd(); after I chdir()ed.
Mar
10
comment Get user info outside Wordpress
Doesn't work for me. Can you help me understand better?