• Resolved wasef201

    (@wasef201)


    Members registered through the private form in addition do not appear in the api

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @wasef201

    Sorry for the late answer. This is not UM issue, this is the WordPress restrictions.

    1. Make sure you are authenticated and your users have the list_users capability.
    2. By default, only users who have published posts are returned by the request. To disable this, you can remove has_published_posts from the query args, please see the hook:
    add_filter('rest_user_query', 'remove_has_published_posts_from_api_user_query', 10, 2);
    function remove_has_published_posts_from_api_user_query($prepared_args, $request)
    {
        unset($prepared_args['has_published_posts']);
    
        return $prepared_args;
    }

    Thank you.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @wasef201

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂

    Regards

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

The topic ‘[NSFW] user api’ is closed to new replies.