• Resolved doog2229

    (@doog2229)


    Hi,

    Thanks for your plugin

    For a project i can set an user and give a co worker role or manager. But how set the autocomplete user search ?

    For my use case i want in this autocomplete search only a specific member with a role

    it is possible to modifiy this autocomplete in your plugin ?

    See you soon

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter doog2229

    (@doog2229)

    Hi,

    I find a solution. In this file wppm_filter_autocomplete.php there is a function that return a number of users in auto complete field.

    For my use case and for the test, i change this function like this $users = get_users(array('search'=>'*'.$term.'*','number' => 5, 'role'=>'membres'));

    i add a specific role in get_users function. Ideally it’s better to create a filter for change this value

    It is possible to create a hook or filter for this part of code ?

    Thanks

    Plugin Author taskbuilder

    (@taskbuilder)

    Hello,

    It is possible to create a hook or filter for this part of code ?

    Yes. We will add hooks in wppm_filter_autocomplete.php file and it will available in next version.

    Thread Starter doog2229

    (@doog2229)

    Hello,

    Thanks so lot 🙂

    Bye

    Thread Starter doog2229

    (@doog2229)

    Hi,

    With your new version of plugin (1.0.5) i can’t see a hook or filter for modify the role in get_users function

    Perhaps in other version 🙂 ?

    Plugin Author taskbuilder

    (@taskbuilder)

    Hello,
    Sorry for the delay here. Hooks in wppm_filter_autocomplete.php will available in next version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.