Hey there! any question in your mind? Ask It Now!.

Popular Categories

From a different PHP file trying to access the currently logged in user in wordpress.

+3 votes
asked in Programming by mannu (990 points)

I am trying to get all logged in wordpress users of my site, For this i have hosted a php file in same wordpress folder,

I know about get_currentuserinfo but its for wordpress i mean i want this information in that separate php page and it should not be delivered from Wordpress.

I hope you got my problem and also hope you will help me out.


1 Answer

+1 vote
answered by vicky (390 points)

If you have hosted that php file in same folder of wordpress,you just need to include  this code on php file.



    define('WP_USE_THEMES', false);



This will help you out.

Related Questions

+5 votes
1 answer 325 views
+1 vote
1 answer 257 views
+8 votes
2 answers 447 views
+2 votes
1 answer 224 views
+6 votes
2 answers 1,999 views
+4 votes
1 answer 710 views
+8 votes
3 answers 378 views
+2 votes
1 answer 227 views

Not a Member yet?

Ask to Folks Login

My Account
327 Folks are online
0 members and 327 guest online
Your feedback is highly appreciated