Disable Delete Post or Page
By Jeremy Selph
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 info@reactivedevelopment.net 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.
- Visit ‘Plugins > Add New’
- Search for ‘Disable Delete Post or Page’
- Click on ‘Install Now’
- Activate the ‘Disable Delete Post or Page’ plugin.
- Go to ‘Settings > Disable delete link’ and modify.
Let us know what questions you have!
3.0
Release Date: 2019/01/15
- Updated documentation, readmes, comments and phpDOC comments.
2.5
Release Date: 2019/01/14
- Re-developed by, Jeremy Selph http://www.reactivedevelopment.net/
2.0
- Released to WordPress.
0.2
Release Date: 2014/01/04
- updated public function reference
0.1
- initial plugin development by, Jeremy Selph http://www.reactivedevelopment.net/
Screenshots



Alternative Plugins for Disable Delete Post or Page
Build responsive page layouts using the widgets you know and love using this simple drag and drop page builder.
Categories: Page Builders
Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. Multisite friendly.
Categories: General
Sort posts and custom post type objects using a drag-and-drop, sortable JavaScript AJAX interface, or through the default WordPress dashboard
Categories: General
Lets you make a WordPress page (or port or other content type) link to a URL of your choosing (on your site, or on another site), instead of its norma …
Categories: General
Postman is a next-generation SMTP Mailer, software that assists in the delivery of email generated by your WordPress site.
Categories: General
Creates functionality to duplicate any and all post types, including taxonomies & custom fields.
Categories: General
Disable enqueuing of fonts from Google used by WordPress core, default themes, Gutenberg, and many more.
Categories: General
Disables the XML-RPC API in WordPress 3.5+, which is enabled by default.
Categories: General
Stops abuse of your site's XML-RPC by simply removing some methods used by attackers. While you can use the rest of XML-RPC methods.
Categories: General
Discover the Lists with Disable Delete Post or Page
FarrowSystem.EU - ALL Plugins
A save of all the plugins from when it was migrated from multisite. Just for historical purposes.