Skip to:
Content
Pages
Categories
Search
Top
Bottom

Dummy user role – if ( current_user_can( ’dummy_role’ )


  • nit3watch
    Participant

    @nit3watch

    I need a dummy role where by I could set only admins and ‘dummy’ to be able to create groups like:

    http://pastebin.com/B3sVPrzG

    So if we gave admins the additional dummy-ability and the ‘dummy’ ( ‘dummy user role’ should have same abilities as a member ) the same we would be able to restrict creation of certain aspects of the site.

    I think it would open up a lot of doors for people trying to restrict creation of things and so on.

    Let me give you an example:

    You want ppl to pay to have a group ( but you dont want them to be able to edit post and so on, moderator[ the only available option I can see beside editing/deleting posts.. ] being the next level above member ), so you let them register and once payment is received you promote them to ‘dummy’, normal ‘members’ ( maybe potential ppl that want a group ) will be redirected to a page advising them on the steps to take or the link could be hidden from ‘members’ with the creation restriction still applied. If we just hid the link and somehow ( highly possible as wp url’s are common ) they found the create link, then they would be bypassing the required steps..

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dummy user role – if ( current_user_can( ’dummy_role’ )’ is closed to new replies.
Skip to toolbar