Support » Plugin: Bainternet Posts Creation Limits » It works with User ID but it doesn´t work with WP Users Roles in WP 4.7.2

  • Hi, nice work! I create a rule with User Role Author, Post Type ANY, LIMIT 1, POST STATUS any and Time Span FOREVER and dont work. I use the same setting but I change in User Role Author by USER ID and plugin work like a charm!. I need work with user rule Author, Could you check this?. THX.

    Note: Ok, I found the problem. The language of my site is Spanish and when selecting the role this does not translate well and the plugin does not work. Only work with English but with others languages don´t work. Could you check this?. THX.

    • This topic was modified 4 years, 10 months ago by runmusic.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter runmusic

    (@runmusic)

    I have solved it by removing translate_user_role ($ wp_roles-> role_names [$ role]) and putting only $ wp_roles-> role_names [$ role]
    In the balp_get_current_user_role () function. This does not translate the role name and works correctly. Please review in the feature. THK for you great work!

    Great! Thanks for the hint, works for me, too. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘It works with User ID but it doesn´t work with WP Users Roles in WP 4.7.2’ is closed to new replies.