Hide specific member from directory

Home Forums Legacy Support Support queries How-to & Troubleshooting Hide specific member from directory

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #380732
    Diego
    Participant
    Hi: I have assigned a page for my directory listings here: https://inteli-iuris.mx/directorio-de-miembros/ I would like to hide specific instructors (docentes, in spanish) from this directory: Docente maestría. Is this possible? Maybe duplicating the role and member type for that instructor alone, and hide it in my elementor widget?
    #380773
    Veronica
    Moderator
    hi well we can try that with custom code if you want
    #380861
    Diego
    Participant
    Hi Veronica: Yes, that will work for the time being. Could you provide me with that custom code? I only need to hide "Docente maestría" from the directory. Thanks a lot.
    #380908
    Veronica
    Moderator
    hi add this code in wplms-customizer.php in wplms-customizer plugin add_filter('vibebp_members_directory_args',function($args){$args['exclude']=[50,40];return $args}); as we have added 50 and 40 you can add the user ID here to exclude the user
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hide specific member from directory’ is closed to new replies.