
內容簡介
以下為總結文案:
這個外掛將一個可排序的待辦事項清單新增至您的 WP 儀表板。不僅對開發人員有用,對內容撰寫者也很實用。
接下來使用提供的內容製作問題與答案:
### 問題與答案
1. 這個外掛提供了哪些功能?
- 待辦事項可以透過 ajax 進行創建、編輯和刪除,無需重新載入頁面。
- 待辦事項有時間戳記功能,您永遠不會忘記它們是何時創建的或上次編輯的時間。
- 有選項可以將待辦清單顯示在前端(僅限當前登入用戶)。
- 前端清單可以折疊和最小化,但目前無法編輯或排序前端項目。
- 前端清單會記住上次的顯示狀態(最小化或折疊)。
- 前端清單會記住打開待辦事項的尺寸、位置和狀態。
- 可選擇不在前端顯示一些待辦事項。
- 每位用戶都有自己獨立的清單。
- 對於多站點,對於每位用戶和每個網站都是一個清單。
外掛標籤
開發者團隊
② 後台搜尋「Sortable Dashboard To-Do List」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
The plugin adds a sortable to-do list to your WP dashboard. This can be useful for developers, or even for content writers. With the possibility to assign tasks to other users, it’s like having your own mini Trello directly on your dashboard!
Task Assignment
To-do list items can be assigned to other users
Users with assigned tasks can easily see by whom they were assigned, and easily flag them as completed
Users who assign tasks can easily see which users have completed them, and which still haven’t
Users who assign tasks can decide if they want assigned users to be able to edit the task description
Assignment ability depends on the current user role
By default:
Administrators can assign tasks to all users with the “edit_posts” capability
Editors can assign tasks to editors, contributors, and authors
Other user roles can only assign tasks to other users with the same role
This feature is currently not activated for multisite setups
4 WP filters to provide further control on assignment rights
Item Creation
To-do list item creation, edition and deletion via ajax. No page reload.
To-do items are timestamped. You’ll never forget when they were created, or when you last edited them.
The list is individual. Each user has their own list.
For multisite, it’s one list per user and per site.
Front-end Display
Option to display the to-do list on the website (for the current logged-in user only).
Website list can be collapsed and expanded. But website items can currently NOT be edited or sorted.
Website list remembers its last display state (showed or collapsed)
Website list remembers the size, position and state of opened to-do items
Website list can be displayed on the left or right side of the window
Possibility to decide to not show some to-do items on the website.
WP Filters
Manage assignment rights:
“sdtdl_users_not_allowed_to_assign” to prevent some users to be able to assign items, by returning an array of user IDs: add_filter('sdtdl_users_not_allowed_to_assign',function(){return ['3','6','8'];})
“sdtdl_[user_role]_can_assign_to” to allow a specific user role to assign items to other roles, by returning an array of roles: add_filter('sdtdl_editor_can_assign_to',function(){return ['administrator','editor'];})
“sdtdl_[user_role]_cannot_assign_to_users” to prevent specific roles from assigning tasks to specific users, by returning an array of user IDs: add_filter('sdtdl_[user_role]_cannot_assign_to_users',function($current_user_id){return ['2','4'];})
“sdtdl_never_assign_task_to_users” to prevent specific users from ever being assigned any tasks, by returning an array of user IDs: add_filter('sdtdl_never_assign_task_to_users',function(){return ['1'];})
Administrators can assign tasks to all user roles with the “edit_posts” capability, but this can also be altered with the previous 3 filters.
Manage list creation rights:
By default, users with the “edit_posts” capability can create a to-do-list
“sdtdl_min_user_capability” to override this minimum capability: add_filter('sdtdl_min_user_capability',function(){return 'publish_posts';})
Manage day count for task highlighting:
By default, tasks will be considered as “aging” 7 days after their creation, and as “old” 14 days after their creation
“sdtdl_aging_tasks_min_days” to override the amount of days for aging tasks, by returning an integer: add_filter('sdtdl_aging_tasks_min_days',function($current_user_id){return 10;})
“sdtdl_old_tasks_min_days” to override the amount of days for old tasks, by returning an integer: add_filter('sdtdl_old_tasks_min_days',function($current_user_id){return 20;})
