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 272 views
+1 vote
1 answer 224 views
+2 votes
1 answer 194 views
+8 votes
2 answers 372 views
+6 votes
2 answers 1,800 views
+4 votes
1 answer 671 views
+4 votes
5 answers 807 views
+8 votes
3 answers 269 views
+2 votes
1 answer 176 views
asked in Programming by krish Expert (6,310 points)

Not a Member yet?

Ask to Folks Login

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