Welcome to the new BuddyDev Experience. If you note an issue, please let us know via contact form.

BuddyDev

Search

Introducing Disable Site Delete plugin for WordPress Multisite based Networks

I got some mail today and with that I got the idea to create a plugin for disabling blog deletion by the blog owners(admins) on a WordPress multisite network. It took me half and hour to write this plugin. So, Here I am putting on for your pleasure.

The goal of this plugin is:-

  • Allow only Network administrators to delete any site(blog) on a multisite network
  • Do not allow blog(site) admins(owners) to delete their blog/site

There does exist a plugin by Ryan Hellyer(http://wordpress.org/plugins/delete-delete-site) which removes the delete link from tools menu for non network admins. the problem is, that plugin does not remove the capability to delete the blog completely. Just hides the link.

The Disable site delete plugin removes the capability of any non network admin to delete a site. So, even if some code tries to delete blog programatically, they won’t be able to delete(If they use standard multisite delete function wpmu_delete_blog).

Screenshots:-

Site Delete Menu:-

After Activating this plugin network wide, that menu will be gone like this

and incase a user manages to reach their(which they can by typing the url), he/she will see a message like this

This plugin does not prevent network admins from deleting any blog.

Download  & Installation:-

http://buddydev.com/plugins/disable-site-delete/

It is a free plugin. I hope that some of you will find it useful. Please do let me know in comments if it works for you or not.

One Response to Introducing Disable Site Delete plugin for WordPress Multisite based Networks

Leave a Reply

Are you looking for support?

Please ask support questions in BuddyDev Forum and help us server you better. Please use comment for general discussion/feature suggestions.

Your email address will not be published. All the fields marked as * are required.

If you are posting code, please use <pre> { Your Code Block } </pre>. Example:- <pre> echo $name; </pre>

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">