
內容簡介
當您將 WordPress 安裝交付給最終客戶時,一定會有某些頁面是您可能不想讓他們刪除的。它可能是具有自定義模板的頁面、在 WYSWIG 編輯器中具有 HTML 的頁面或由於某種原因而被連接且不是動態的頁面。
無論原因是什麼,如果先前設置了該選項,則「Disable Delete Post or Page Link Plugin」將刪除刪除文章的能力。以下區域的「刪除」連結都將被刪除:
檢視所有文章或所有頁面時。
在「發布」中編輯文章時。
重要注意事項
此外掛程式不會在您的目前佈景主題中添加任何東西。
如果已設置該選項,它將防止使用者刪除文章、頁面或其他自訂文章類型。
wp_trash_post() 或 wp_post_delete() 函數不受影響,當使用這些函數時,文章可以並且將被刪除。
要使用停用功能,您需要使用「螢幕選項面板」。請參閱https://make.wordpress.org/support/user-manual/getting-to-know-wordpress/screen-options/。
如何使用
使用此「Disable Delete Post or Page Link Plugin」時,您可以從上面顯示的區域隱藏/刪除刪除連結和刪除功能。每個文章、頁面或自訂文章都需要進行編輯並設置其選項。請遵循以下步驟:
在編輯文章時,請點選右上角的「螢幕選項」。
在「螢幕選項」面板開啟後,尋找標籤為「刪除此文章的能力」。然後勾選「移除垃圾桶」旁的複選框。
說明與支援
如需自訂 WordPress 外掛程式和佈景主題的開發請電子郵件聯絡我們:[email protected],或直接至 https://www.reactivedevelopment.net/。如果您對此外掛程式有疑問或需求,請前往https://wordpress.org/support/plugin/featured-users-wordpress-plugin,或前往https://www.reactivedevelopment.net/contact/project-mind/?plugin=featured-users以快速付費支援方式聯繫我們。
外掛標籤
開發者團隊
原文外掛簡介
When handing over a WordPress installation to the end-client, there are always certain pages that you may not want them to delete. It could be pages with custom templates, pages with HTML in the WYSWIG editor or for some reason a page that is hooked in and is not dynamic.
Whatever the reason is the Disable Delete Post or Page Link Plugin removes the ability to delete a post if its option has been previously set. The "Delete" links are removed from the following areas:
When viewing the list of All Posts or All Pages.
When editing a post in the Publish meta box.
Important notes
This plugin does not add anything to your current theme.
It will stop users from deleting posts, pages or other custom posts types if the option has been set.
The wp_trash_post() or wp_post_delete() functions are not affected and when used posts can and will be deleted.
The screen options panel is required to use the disable functionality. See https://make.wordpress.org/support/user-manual/getting-to-know-wordpress/screen-options/.
How to
When using this "Disable delete posts or pages" plugin you can hide/remove the delete links and delete functionality from the areas shown above. Each post, page or custom post needs to be edited and its option set. To do this follow these steps:
When editing the post click on "Screen Options" in the upper right-hand corner.
After the "Screen Options" panel has opened look for the label "Remove the ability to delete this post". Then check the checkbox that says "Remove trash link".
Help and support
For custom WordPress plugin and theme development requests email us at [email protected] or go to https://www.reactivedevelopment.net/. If you have questions or requests for this plugin go to https://wordpress.org/support/plugin/featured-users-wordpress-plugin or for quick and paid support go to https://www.reactivedevelopment.net/contact/project-mind/?plugin=featured-users to message us.
