• leslie16

    (@leslie16)


    I try to rename a role, they tell me it’s registered but nothing changes

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    It works on my test. Some plugins create roles dynamically for every page opening. Just to be sure that it is not your case, try to make the same with a new manually added role. Will it work?

    Thread Starter leslie16

    (@leslie16)

    yes it works when i create a new role…

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Can you guess by the name of a role, which is not renamed, to what plugin it belongs? Send the link, if that plugin is available at ww.wp.xz.cn

    Thread Starter leslie16

    (@leslie16)

    Sorry, but I don’t quite understand your question… ?

    Plugin Author Vladimir Garagulya

    (@shinephp)

    What role did you try to rename without success? Tell me its name and ID. Do you know if it was created by some plugin?

    Thread Starter leslie16

    (@leslie16)

    I try to rename “Lycéen ou étudiant en recherche de formations” to become just “Client”. I don’t see where i can get the ID ?
    Maybe it is related to elementor that we use?

    Can see here the name of the role :
    https://drive.google.com/file/d/1yaHQcYW0gR1iN86_tVdwlfiUcxZ2ARmm/view?usp=sharing

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Thanks for the clarification. I see from the screenshot that this role belongs to WooCommerce plugin. It’s code to PHP in English as ‘Customer’ (customer). The translated version WordPress and User Role Editor take from the translation file.
    When you rename role in URE, it rewrites the default role name saved in the database, changes ‘Customer’ to your own, e.g. ‘Client’. But at the UI elements WordPress and URE shows the translated version of the role name. More, it shows “Client” when I switch WordPress to the French language.

    Try to remove the translation files at wp-content/languages/plugins folder: woocommerce-fr-FR.*
    WordPress will download a fresh version of translation files then.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Bug – rename roles’ is closed to new replies.