[WordPress] 外掛分享: Hide Author Archive

首頁外掛目錄 › Hide Author Archive
WordPress 外掛 Hide Author Archive 的封面圖片
500+
安裝啟用
★★★★★
5/5 分(1 則評價)
408 天前
最後更新
問題解決
WordPress 5.9+ PHP 7.4+ v1.2.1 上架:2020-10-21

內容簡介

這個外掛可以隱藏作者的存檔頁面。
如果你不需要作者參數,此外掛可以提高你的網站安全性以避免機器人的檢查。

不再重新導向 ?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;
} );

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

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.

延伸相關外掛

文章
Filter
Mastodon