
內容簡介
Hide Author Archive 外掛可隱藏作者的檔案頁面,增強網站的安全性,防止機器人檢查。適合不需要顯示作者資訊的網站,並能隱藏相關的查詢參數。
【主要功能】
• 隱藏作者檔案頁面
• 忽略作者查詢參數
• 隱藏 REST API 中的用戶列表
• 移除用戶網站地圖
• 隱藏元標籤中的作者資訊
• 替換 RSS 和 Atom 中的作者名稱
外掛標籤
開發者團隊
原文外掛簡介
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.
No more ?author=1 redirection to /author/admin
Ignore query var like author=1 or author_name=admin
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;
} );
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 (
Some organization needs to hide author information of each article.
Supported Plugins
Yoast
Remove meta=author
Override author section in Article scheme in JSON-LD
Hide author section in Slack sharing.
Hide article:author in OGP.
Exclude all authors from XML sitemap.
