Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




User Profile

UserPost

8:27 pm
May 9, 2011


stuartshields

New Member

posts 1

1

Hi,

Was wondering if Role Scoper can show different information to different groups in the User Profile?

We have paying members who need to fill in a form once their membership has been approved (upgraded to the appropriate level). Was wondering if something like current_user_can in the admin area would work with role scoper?

8:23 pm
May 11, 2011


Kevin

Admin

posts 2503

2

Role Scoper filters current_user_can results based on your Restriction and Role settings. So if you hook a function to the 'show_user_profile' action, you can display content conditionally based on:

if ( current_user_can( 'edit_post', $meaningful_post_id ) )

…or…

global $current_user;
if ( isset( $current_user->groups[$meaningful_group_id] ) )

About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

There are 1261 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin