
內容簡介
這個外掛可以隱藏作者的存檔頁面。
如果你不需要作者參數,此外掛可以提高你的網站安全性以避免機器人的檢查。
不再重新導向 ?author=1 到 /author/admin
忽略查詢變數,例如 author=1 或 author_name=admin
當使用者沒有權限 list_users 或 edit_others_posts 時,可以從 REST API 中隱藏使用者清單。這個能力可以透過過濾器更改。
/**
* 過濾器,可以更改查看作者清單的能力。
*
* @param string[] $caps 能力清單。
*/
add_filter( 'hide_author_archive_rest_query_capability', function( $caps ) {
$caps[] = 'read';
return $caps;
} );
外掛標籤
開發者團隊
原文外掛簡介
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. 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
Remove meta=author
Override author section in Article scheme in JSON-LD
Hide author section in Slack sharing.
Hide article:author in OGP.
