Title: Hide Author Archive
Author: Tarosky Inc.
Published: <strong>2020 年 10 月 22 日</strong>
Last modified: 2026 年 10 月 16 日

---

搜索插件

![](https://ps.w.org/hide-author-archive/assets/banner-772x250.png?rev=3633770)

![](https://ps.w.org/hide-author-archive/assets/icon-256x256.png?rev=3633770)

# Hide Author Archive

 作者：[Tarosky Inc.](https://profiles.wordpress.org/tarosky/)

[下载](https://downloads.wordpress.org/plugin/hide-author-archive.1.3.0.zip)

 * [详情](https://cn.wordpress.org/plugins/hide-author-archive/#description)
 * [评价](https://cn.wordpress.org/plugins/hide-author-archive/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hide-author-archive/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hide-author-archive/#developers)

 [支持](https://wordpress.org/support/plugin/hide-author-archive/)

## 描述

This plugin will hide author’s archive.
 If your don’t need author parameter, this
plugin may enhance your site’s security from bot inspection.

 1. No more `?author=1` redirection to `/author/admin`
 2. Ignore query var like `author=1` or `author_name=admin`
 3. Hide user list in REST API from user without permission `list_users` or `edit_others_posts`.
    Single user request like `wp/v2/users/1` is also hidden with the same capabilities,
    except for the user themselves and users who can edit the user. This capability
    is filterable.

    ```
    /**
     * Filter capabilities to see author list and single author.
     *
     * For single user request, $args is an empty array.
     *
     * @param string[]             $caps    List of capabilities.
     * @param array                $args    Arguments for user query.
     * @param WP_REST_Request|null $request Request object.
     */
    add_filter( 'hide_author_archive_rest_query_capability', function( $caps ) {
        $caps[] = 'read';
        return $caps;
    } );
    ```

 1. Remove users sitemap (`/wp-sitemap-users-1.xml`) from core XML sitemaps. Author
    archive URLs reveal `user_nicename`, which is usually derived from login name.

Besides that, this plugin tries to remove author information from meta tags and 
JSON-LD as possible as it can.

 * Override author section in oEmbed.
 * Replace author archive links (e.g. author name link in byline) with the posts
   page, because the link contains `user_nicename`. You can change the URL in Settings
   > Reading.
 * Remove `comment-author-{user_nicename}` class from registered user’s comments.
 * Replace author name in feeds (`<dc:creator>` in RSS, `<author>` in Atom) with
   the site name. Author’s URL is also removed from Atom feed. Display name is the
   same as login name by default, so feeds may reveal it.

Some organization needs to hide author information of each article.

#### Supported Plugins

Yoast

 1. Remove `meta=author`
 2. Override author section in Article scheme in JSON-LD
 3. Hide author section in Slack sharing.
 4. Hide `article:author` in OGP.
 5. Exclude all authors from XML sitemap.

## 安装

Search “hide author archives” in admin screen.
 Altenatively, you can install it
manually like below:

 1. Upload `hide-author-archive` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

### There is still author name exposed!

This plugin is for sites that **do not intend** to show author information, but 
WordPress exposes it unintentionally.
 Its scope is machine-readable identifiers
such as `user_nicename` (usually the same as the login name) in URLs, CSS classes,
sitemaps, feeds and REST API, which site owners rarely notice.

The author’s **display name** shown by your theme (e.g. `the_author()` in a byline)
is out of scope, because the theme and the site owner intentionally output it.
 
If your theme shows author names you don’t want, change the theme or set a proper
display name for each user (by default, display name is the same as login name).

Our fundamental goal is covering Core features.
 But feel free to let us know and
request new features.

### How To Contribute

We host plugin on [github](https://github.com/tarosky/hide-author-archive) and any
issues and pull requests are welcomed!

## 评价

![](https://secure.gravatar.com/avatar/c24266d8792cc6c37c138a9ccfb3d3006a381c77fa9168a1340eb1b50225cc4f?
s=60&d=retro&r=g)

### 󠀁[Works for me, thanks!](https://wordpress.org/support/topic/works-for-me-thanks-3/)󠁿

 [Bradley Allen](https://profiles.wordpress.org/bradley/) 2021 年 2 月 25 日 1 回复

After activating this plugin, the author archive lands on a 404 page. I was looking
for this functionality, because on many websites, there isn't a need for author 
archives. Tested with WordPress 5.6.2

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/hide-author-archive/reviews/)

## 贡献者及开发者

「Hide Author Archive」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Tarosky Inc. ](https://profiles.wordpress.org/tarosky/)
 *   [ Kunoichi INC ](https://profiles.wordpress.org/kuno1/)
 *   [ Fumiki Takahashi ](https://profiles.wordpress.org/takahashi_fumiki/)
 *   [ Arata Takami ](https://profiles.wordpress.org/nevnum/)

「Hide Author Archive」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/hide-author-archive/contributors)
为本插件所做的贡献。

[帮助将「Hide Author Archive」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hide-author-archive)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/hide-author-archive/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/hide-author-archive/)，或通过[RSS](https://plugins.trac.wordpress.org/log/hide-author-archive/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/hide-author-archive/)。

## 更新日志

#### 1.3.0

 * **Security**: Remove users sitemap (`/wp-sitemap-users-1.xml`) from core XML 
   sitemaps and exclude all authors from Yoast author sitemap. Author archive URLs
   in sitemaps revealed `user_nicename`, which is usually derived from login name.
 * Replace author archive links (e.g. author name link in byline) with the posts
   page. The URL can be changed in Settings > Reading.
 * Replace author name in feeds (`<dc:creator>` in RSS/RDF, `<author>` in Atom) 
   with the site name, and remove author URL from Atom feed.
 * Remove `comment-author-{user_nicename}` class from registered user’s comments.
 * Fix block editor showing “(No author)” for editors. Single user request in REST
   API now uses the same capabilities as the user list. Props [@ko31](https://github.com/ko31).
 * `hide_author_archive_rest_query_capability` filter is now also applied to single
   user request. In that case, `$args` is an empty array.
 * Bump requirements: WordPress 6.6 or later. Tested up to 7.1.

#### 1.2.1

 * Add some more filters for Yoast and oEmbed(Core).

#### 1.2.0

 * Add override function for Yoast.

#### 1.1.5

 * Hide single REST API for single user get `wp/v2/users/1`.
 * Editor can see REST API users get to change author of posts.

#### 1.1.1

 * Support REST API.
 * Fix coding standards.

#### 1.0.0

 * First release

## 额外信息

 *  版本 **1.3.0**
 *  最后更新：**8 小时前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 6.6 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/hide-author-archive/) 、 [Japanese](https://ja.wordpress.org/plugins/hide-author-archive/)
   和 [Swedish](https://sv.wordpress.org/plugins/hide-author-archive/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/hide-author-archive)
 * 标签
 * [archive](https://cn.wordpress.org/plugins/tags/archive/)[author](https://cn.wordpress.org/plugins/tags/author/)
   [permalink](https://cn.wordpress.org/plugins/tags/permalink/)[url](https://cn.wordpress.org/plugins/tags/url/)
 *  [高级视图](https://cn.wordpress.org/plugins/hide-author-archive/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/hide-author-archive/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/hide-author-archive/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/hide-author-archive/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/hide-author-archive/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/hide-author-archive/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/hide-author-archive/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/hide-author-archive/reviews/)

## 贡献者

 *   [ Tarosky Inc. ](https://profiles.wordpress.org/tarosky/)
 *   [ Kunoichi INC ](https://profiles.wordpress.org/kuno1/)
 *   [ Fumiki Takahashi ](https://profiles.wordpress.org/takahashi_fumiki/)
 *   [ Arata Takami ](https://profiles.wordpress.org/nevnum/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/hide-author-archive/)