User id on profile page
-
I am the developer of plugin wp-photo-album-plus.
A user asked me how to show a users albums on the profile page.
To display something in my plugin one has to add a shortcode.
In this shortcode one can specify what to be seen, example:
[wppa type=”covers” albums=”#owner,johndoe”] shows the covers of the albums created by johndoe.
To make it usable for the current user, there is albums=”#owner,#me”I now want to implement something like albums=”#owner,#bpuser” to be used on the bp profile page, where #bpuser should be replaced by the login name of the user whos profile page is displayed.
So what i need ia a function or a global var or a class where i can identify the user on the profile page. Eiter login name or id will suit me.
So, the question is: How do i find the user of the profile page i am looking at??
- The topic ‘User id on profile page’ is closed to new replies.