How can I restrict the user access in Wordpress?

Discussion in 'WordPress' started by cybercrawler, Aug 6, 2010.

  1. #1
    I am planing to give access to my registered members as contributor.

    They will be able submit any post for review. They can modify their profile. When I let the registered users as Contributor, they can access to one of my plug ins.

    How can restrict their access? or

    Could it be possible for me to give these users particular facilities?
     
    cybercrawler, Aug 6, 2010 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,842
    Likes Received:
    4,543
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Usually the access is defined within the plugin itself. You'll find in the code a check (or not) of the users role.

    Here's an example from the user-photo plugin
    function userphoto__init(){
    	if(get_option('userphoto_override_avatar') && !is_admin())
    		add_filter('get_avatar', 'userphoto_filter_get_avatar', 10, 4);
    }
    PHP:
    In this it looks to see what has been saved into options and checks that the user isn't the admin and adds a filter to swap out the avatar.

    You can use similar logic to say if the user is an admin then add_filter ... to give the plugin functionality.
     
    sarahk, Aug 7, 2010 IP
  3. PTexplosion

    PTexplosion Member

    Messages:
    105
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #3
    I use wish list member on my blog and I can create many levels of authorization and membership. It is pretty easy to install and has so many options you can choose from to help separate members.
     
    PTexplosion, Aug 8, 2010 IP
  4. cybercrawler

    cybercrawler Peon

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks Both Sarahk and PTexploshion
     
    cybercrawler, Aug 8, 2010 IP
  5. DawnBaby

    DawnBaby Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try using role manager to change the capabilities and access of a user
     
    DawnBaby, Aug 9, 2010 IP
  6. thenetspiders

    thenetspiders Active Member

    Messages:
    341
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #6
    wishlist member is a free plugin i want to try free for my blog is there any link ?
     
    thenetspiders, Jan 20, 2012 IP