[WordPress] 外掛分享: Edit Recent Edited Posts

首頁外掛目錄 › Edit Recent Edited Posts
全新外掛
安裝啟用
尚無評分
113 天前
最後更新
問題解決
WordPress 5.0+ PHP 8.0+ v1.01 上架:2024-06-02

內容簡介

<h3>外掛總結</h3>
<ul>
<li>管理員工具列中會顯示最近編輯的文章連結,方便進行編輯。</li>
<li>顯示最近3天內編輯過的5篇文章。</li>
<li>支援文章、頁面、媒體和自訂文章。</li>
<li>可以使用下面提供的過濾器鉤子來更改各種設置。</li>
</ul>

<h3>問題與答案</h3>
<dl>
<dt>1. 外掛提供了什麼功能?</dt>
<dd>管理員工具列中會顯示最近編輯的文章連結,方便進行編輯。同時顯示最近3天內編輯過的5篇文章。</dd>

<dt>2. 外掛支援哪些內容類型?</dt>
<dd>外掛支援文章、頁面、媒體和自訂文章。</dd>

<dt>3. 如何可以更改外掛的設置?</dt>
<dd>可以使用提供的過濾器鉤子來更改各種設置,包括設置顯示的時間範圍、編輯文章的使用者權限等。</dd>
</dl>

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Edit Recent Edited Posts」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Displays a link to the recent edited posts in the admin bar, where you can edit it.

Showing 5 posts edited within the last 3 days.
Support Post, Pages, Media and Custom Posts.
Can change various settings using the filter hooks below.

How it works

Filter hooks
/** ==================================================
* Filter for capability.
*
*/
add_filter( 'edit_recent_edited_posts_user_can',
function() {
return 'edit_published_posts';
},
10,
1
);

/** ==================================================
* Filter for period to be displayed.
*
*/
add_filter(
'edit_recent_edited_posts_days',
function() {
return 30;
},
10,
1
);

/** ==================================================
* Filter for user ID of the post to be displayed.
*
*/
add_filter(
'edit_recent_edited_posts_author_ids',
function() {
$user_ids = array();
$user_ids[] = get_current_user_id();
return $user_ids;
},
10,
1
);

/** ==================================================
* Filter for displayed results.
*
*/
add_filter(
'edit_recent_edited_posts_items',
function() {
return 10;
},
10,
1
);

/** ==================================================
* Filter for display order.
*
*/
add_filter(
'edit_recent_edited_posts_order',
function() {
return 'ASC';
},
10,
1
);

/** ==================================================
* Filter for type of posting date and time.
*
*/
add_filter(
'edit_recent_edited_posts_orderby',
function() {
return 'post_date';
},
10,
1
);

延伸相關外掛

文章
Filter
Mastodon