Yes, inside /wp-admin/includes/ms.php
there is the action hook delete_blog
.
This test prevents a blog deletion:
add_action( 'delete_blog', 'prevent_blog_delete_wpse_82961', 10, 2 );
/**
* @param int $blog_id Blog ID
* @param bool $drop True if blog's table should be dropped. Default is false.
*/
function prevent_blog_delete_wpse_82961( $blog_id, $drop )
{
wp_die( 'aborting delete_blog' );
}
Related Posts:
- WordPress Multisite: Adding actions to only one site
- Make default new sites https (multisite)
- Which action hook to update custom field at network/site-info.php in multisite on update site info
- How to add Custom Blog Options to new blog setup form?
- WP Multisite: Adding pages on blog creation by default
- Add new column to sites page
- Prevent Deletion of Blogs
- Hook filter to change wp_upload_dir() path in multisite
- Add site options UI in Multisite Sites > Infos page
- WPMU Hook for archive or deactivate blog?
- Hook up MU site creation
- Update blog option during create new blog?
- Multisite – each site with it’s own set of users
- What could cause wpmu_create_blog to throw “Already Installed” Error on multisite?
- personal_options hook on WordPress multisite
- add_action insert html
- What are options are there to implement a multi language site
- Where is the robots.txt stored for a WordPress Multisite install?
- Settings API in Multisite – Missing update message
- WordPress Multisite Multiple child theme
- WordPress Multisite: How to make all media library items available for every site?
- How to setup LDAP authentication with WP multisite
- Set default avatar network-wide
- Force plugin to be activated only from multisite network dashboard [duplicate]
- Delete sites in wordpress multisite (not suspend)
- Get first_name and last_name on user_register hook
- User registration on subsite in multisite configuration
- Multisite, turn off “create new site”
- Hard Code Pages into a Theme for a Network (multisite) Installation
- Allowing logged in users to comment without moderation across a multisite installation
- Redirect all users, except network administrators, from the main site to a subsite
- How to get the via url (or site name) on a wordpress network’s home page?
- WordPress multisite htaccess
- Create New Site (multisite); can’t get subdomain to work
- Subdirectory multisite – only root admin available on NGINX
- How to Run Code Before a New Site is Created on MultiSite for Validation
- How to use JSONP to make AJAX request to different site on network
- User registration on sub site
- How to trigger function on theme delete?
- Can I use two different domain names with a WordPress multisite network?
- Restrict Admin Capabilities in MultiSite
- Installing multisite on domain with existing subdirectory wordpress installations
- Registration and Profile custom field
- How can i do something after head like adding a hook for after head but before post
- wp_redirect not working on admin menu page
- Bootstrapping WordPress MultiSite Outsite of WordPress – No $wpdb
- Permalinks not working using wordPress Networking with custom post types
- WP CLI Get all Enqueued Scripts and Styles
- Multisite domain naming
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- All pages have 302 redirect, which I can’t remove
- Can is_page and is_front_page both be true?
- Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites
- WordPress Multisite with Addon Domains (not parked domain) [closed]
- How to share primary navigation of main site with subsites usining switch_to_blog
- WordPress 4.5+ Multisite Domain Mapping
- Redirect to localhost after installing Multisite on server
- Multisite sub-directories IIS 7.5 change media/uploads location
- One Domain, Two Installs of WordPress
- add_rewrite_rule not working in WordPress Multisite
- WordPress multisite install on two subdomains, each belonging to a separate domain
- How do I find where the current value of the option ‘registration’ in the SQL database?
- is_main_site() Always Returns True
- Strange multisite issue where all sites return same id with get_current_site()
- Mass Update Broken Links
- How to direct user after comment save
- Permalink with a Category and then a Post
- Add Different Actions To Different Page’s wp_footer
- Performance disadvantge of second installation instead multisite feature?
- Creating a subdomain network in a subdomain
- How to find list of all functions bind to a particular hook from my plugin?
- Add action to custom Function
- How much resources are good enough for 3.9.2
- Best Practise: Linking to WPMU sites from other sites
- Subdomain is not working
- Common user login for two different wordpress installation and bbpress
- WordPress Multisite and how to apply sef urls only to specific sites
- Custom css – WordPress Multisite
- Migration: previous URL redirection after migrating
- how to convert a wp multisite into a single site with content from subsites
- Getting stylesheet error after setting subdomain to false in multisite
- String translation within WordPress multisite with i18n not working on all sites
- Hooking into the HTML header container
- Add new sites on the same level as the parent URL in a multisite
- URLs for (MultiSite) link images are always relative
- Add radio button on theme at the select of the theme the same theme should be activated after generation of new site in multi site
- Moving wordpress multisite to new domain
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- multisite shared settings
- Multi Site Translate Strings
- Should I use MultiSite for a subdomain based wp site?
- Can’t import posts in multisite
- User registration problem on multisites web
- Object oriented programming, add_action in constructor not firing
- Admin user getting redirected to /wp-admin/user
- Getting 404 after Update in Multisite
- There is no featured image in my post in wordpress multisite theme [closed]
- 404 error in dashboard of subdomain of multisite
- WordPress Multisites
- The wpmu_blogs_columns filter is not working