• amiraliz

    (@amiraliz)


    Hi,

    Latest version of this plugin displays custom added role names (In dropdown list, rule edit list and anywhere else) using their id(?) from WP database JSON structure of user roles, instead of their actual “name” attribute. This results in unrecognizable names for roles.

    for instance, roles created by Advanced Access Manager plugin, are shown by their id as in image below:
    https://i.imgur.com/ULXgYML.png

    Proper method of the name retrieval, which is what WP itself does, may be using name attribute instead like below:
    https://i.imgur.com/dnZht6J.png

    I’ve managed to extract proper name labels for the dropdown, but it’s not a general solution and won’t work globally.

    Cheers.

    https://www.ads-software.com/plugins/peters-login-redirect/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom WP roles: names appear incorrect’ is closed to new replies.