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 236 views
+1 vote
1 answer 205 views
+2 votes
1 answer 177 views
+8 votes
2 answers 330 views
+6 votes
2 answers 1,684 views
+4 votes
1 answer 663 views
+4 votes
5 answers 771 views
+8 votes
3 answers 197 views
+2 votes
1 answer 138 views
asked in Programming by krish Expert (6,310 points)

Not a Member yet?

Ask to Folks Login

My Account
446 Folks are online
4 members and 442 guest online
Your feedback is highly appreciated