• Hello there

    I can’t get the plugin to work correctly for me – If I set a user ID the restriction works but if I select a user type the plugin never seems to kick in to action – I have a bunch of user types created from another plugin so I suspect that is the issue.

    I only need to restrict one user type ‘Subscriber’ so I was wondering if I could hard code this in to the plugin rather than it trying to find out what my user type is? Or if anyone can think of a better way of hacking this around to work for my situation.

    The plugin does actually see my user types (in the drop down when creating a rule) so maybe there is a different issue … but I can’t think of what would be causing this, can anyone suggest something I could do to test what’s happening?

    Any advice pointing me in the right direction on this one would be very much appreciated

    N

Viewing 2 replies - 1 through 2 (of 2 total)
  • yos.c.bd

    (@yoscbd)

    same problem here, it is working only if i chose user id, if i chose user rule it is not working and user can post as much as he wants

    Like runmusic found out, this works:

    Change row 651:
    return isset($wp_roles->role_names[$role]) ? translate_user_role($wp_roles->role_names[$role] ) : false;

    in
    return isset($wp_roles->role_names[$role]);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Working for ID but not working for user types’ is closed to new replies.