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. This capability is filterable.
/**
 * Filter capabilities to see author list.
 *
 * @param string[] $caps List of capabilities.
 */
add_filter( 'hide_author_archive_rest_query_capability', function( $caps ) {
    $caps[] = 'read';
    return $caps;
} );

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.

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.

安装

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!

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 and any issues and pull requests are welcomed!

评价

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条评价

贡献者及开发者

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

贡献者

「Hide Author Archive」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Hide Author Archive」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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