get_users_query_args example


        $url_list = apply_filters(
            'wp_sitemaps_users_pre_url_list',
            null,
            $page_num
        );

        if ( null !== $url_list ) {
            return $url_list;
        }

        $args          = $this->get_users_query_args();
        $args['paged'] = $page_num;

        $query    = new WP_User_Query( $args );
        $users    = $query->get_results();
        $url_list = array();

        foreach ( $users as $user ) {
            $sitemap_entry = array(
                'loc' => get_author_posts_url( $user->ID ),
            );

            
Home | Imprint | This part of the site doesn't use cookies.