[wordpress插件] Disable Delete Post or Page禁用删除帖子或页面

wordpress 插件 文章 2020-04-17 21:41 492 0 全屏看文

AI助手支持GPT4.0

评分
20
描述

When handing over a WordPress installation to the end-client, there are always certain pages that you may not want them to delete.

在将WordPress安装移交给最终客户端时,总是会有某些页面,您可能不希望它们删除。

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.

可能是带有自定义模板的页面,在WYSWIG编辑器中带有HTML的页面,或者是由于某种原因而被钩住且不是动态的页面。

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:

从以下区域中删除了“删除”链接:

    1. When viewing the list of All Posts or All Pages.
    2. 查看“所有帖子”或“所有页面”列表时。

    3. When editing a post in the Publish meta box.
    4. 在发布元框中编辑帖子时。

    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.
      • wp_trash_post()或wp_post_delete()函数不受影响,使用的帖子何时可以并且将被删除。

      • The screen options panel is required to use the disable functionality.

      • 需要使用屏幕选项面板才能使用禁用功能。

        See https://make.wordpress.org

        参见 https://make.wordpress.org

        /support/user-manual/getting-to-know-wordpress/screen-options/.

      • / support / user-manual / getting-to-know-wordpress / screen-options / 。

      How to

      操作方法

      When using this "Disable delete posts or pages" plugin you can hideemove 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:

      为此,请按照下列步骤操作:

        1. When editing the post click on "Screen Options" in the upper right-hand corner.
        2. 编辑帖子时,请点击右上角的“屏幕选项”。

        3. After the "Screen Options" panel has opened look for the label "Remove the ability to delete this post".

        4. 打开“屏幕选项”面板后,查找标签“删除该帖子的功能”。

          Then check the checkbox that says "Remove trash link".

        5. 然后选中“删除垃圾邮件链接”复选框。

        Help and support

        帮助和支持

        For custom WordPress plugin and theme development requests email us at info@reactivedevelopment.net or go to info@reactivedevelopment.net 或给

        https://www.reactivedevelopment.net/" rel="nofollow">https://www.reactivedevelopment.net/.

        https://www.reactivedevelopment.net/“ rel =” nofollow“> https://www.reactivedevelopment.net/ 。

        If you have questions or requests for this plugin go to https://wordpress.org/support/plugin/featured

        如果您对此插件有疑问或要求,请访问 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.

        “> https://www.reactivedevelopment.net/contact/project-mind/?plugin=featured-users 向我们发送消息。

安装步骤

    1. Visit ‘Plugins > Add New’
    2. 访问“插件>添加新内容”

    3. Search for ‘Disable Delete Post or Page’
    4. 搜索“禁用删除帖子或页面”

    5. Click on ‘Install Now’
    6. 点击“立即安装”

    7. Activate the ‘Disable Delete Post or Page’ plugin.
    8. 激活“禁用删除帖子或页面”插件。

    9. Go to ‘Settings > Disable delete link’ and modify.
    10. 转到“设置>禁用删除链接”并进行修改。

下载地址
https://downloads.wordpress.org/plugin/disable-delete-post-or-page-link-wordpress-plugin.zip
-EOF-

AI助手支持GPT4.0