Im new to wordpress.I have a plugin that returns the id of the logged in user.
This is the code.

global $current_user;
      $ul = 'Guest';
      if ( isset($current_user) )
      {
          $ul = $current_user->user_login;
          $useremail = $current_user->user_email;
      }
      if ($ul=='') { $ul = 'Guest';}
$outstr = "Hello, ".$ul;

Now what I need is to acces this plugin from outside the site. I need to get this userid when I provide the url of this plugin, from another site.
How can I do this ?

Read more here: Access plugin from another site in wordpress


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: