• Resolved xxxLesy

    (@xxxlesy)


    This is really just a minor inconvenience, but nonetheless. I (as I imagine lots of publishers) use more than just the default 4 wp user rolers (admin, editor, author, contributor). So every time I update Molongui, I have to manually edit incluides/helpers/author.php to include my custom user roles.

    Would it be possible for the plugin to be modified to somehow automatically find all active custom user roles? Or perhaps add an option to select them in settings. Whichever is easier.

    If needed: I use User role editor by Vladimir Garagulya: https://www.ads-software.com/plugins/user-role-editor/

    As I said, it’s not really a big deal, but perhaps it can be added to some future development list. Thanks for all the hard work you guys do ??

Viewing 1 replies (of 1 total)
  • Plugin Author Molongui

    (@molongui)

    Hi @xxxlesy,

    thanks for your request! We didn’t answer you back but it didn’t mean we ignored you at all. As per your request, we have added a handy filter you can now use to provide those (custom) user roles you want to consider to retrieve users than can be assigned as post authors.

    Filter name is authorship/user/roles and by default it takes an array like array( 'administrator', 'editor', 'author', 'contributor' ). So now you can provide any custom array of your choice with the add_filter function from your child theme. No worries about plugin updates overwriting your edits ??

    The filter is available since version 4.0.10.

    For convenience, Pro version offers this as a settings option. So Pro users can easily select which (custom) user roles the plugin must take into account from their Dashboard.

    Thanks for helping us improving the plugin!

Viewing 1 replies (of 1 total)
  • The topic ‘Feature request: auto find non standard user roles’ is closed to new replies.