+3 votes
333 views
in Programming by (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.

Thanks!

1 Answer

+1 vote
by (390 points)

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

 

<?php

    define('WP_USE_THEMES', false);

    require('wp-blog-header.php');

?>

This will help you out.

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated