// 彻底屏蔽用户列表API，无论是否登录都无法访问
add_filter('rest_authentication_errors', function ($result) {
    $route = $_SERVER['REQUEST_URI'];
    if (strpos($route, '/wp-json/wp/v2/users') !== false) {
        return new WP_Error('rest_forbidden', '无权访问', array('status' => 403));
    }
    return $result;
});<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://xinran.live/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://xinran.live/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://xinran.live/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://xinran.live/wp-sitemap-posts-mcv_course-1.xml</loc></sitemap><sitemap><loc>https://xinran.live/wp-sitemap-posts-mcv_lesson-1.xml</loc></sitemap><sitemap><loc>https://xinran.live/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://xinran.live/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://xinran.live/wp-sitemap-taxonomies-course-category-1.xml</loc></sitemap><sitemap><loc>https://xinran.live/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
