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
- Activation of new Registered site fails on multisite
- Multi Site Translate Strings
- Whats the best Practice for using a different Theme for WebView Apps?
- Current blog is returning ID of 1 instead of users blog ID?
- Multisite /files/ URLs broken after server move
- Authenticate WordPress Site through another WordPress installation?
- WordPressMU: URL change and broken permalinks/links
- Blog switch wpml string translation (multi-site)
- Extended URLs created using multisite feature not loading CSS/JS
- One login for 3 WordPress installations with combined user table doesn’t work
- Migrate site from WordPress multisite to another WordPress multisite
- How To Change the URL of a WordPress Multisite
- Backend freezing on certain pages of a subsite
- WordPress MU with subdomain
- Modifying get_author_posts_url() in Multisite
- Get multisite count without php?
- How do i get custom metabox data from each multisite blog?
- Do “switch_to_blog()” and “restore_current_blog()” re-run the filters?
- Multisite custom rewrite urls
- Multisite login and redirect to users main blog,
- do action inside a class is not working
- How to create 30 new sites from an export of a master site?
- Is Multisite the RIGHT option for my case?
- Sending SMTP mail using a server with self-signed SSL
- ajax returns -1 in multisite sub domain
- WordPress save_post hook not firing when checking if _GET[‘post’] is set
- Nested folder paths for WordPress multisite
- Can WordPress Multisite work like a regular site?
- WordPress Multisite redirect loop
- Setting up multisite with NginX
- Multiple domain with one database
- Domain mapping breaks some plugin scripts and css
- Synchronize wordpress site between two different servers
- How to force WP to create a users table in multisite configuration?
- Determine if a Network has any sites created already
- Creating a stand-alone site from a WordPress sub site
- Problem in adding new site on WP multisite
- Multisite authorization error 401
- Multisite read_more link displays URL twice
- Blog broken after changing Site/Home URL
- multisite detect subsite blog number
- Multsite Child site Auto Content
- Multiple devices wordpress website
- How to configure WordPress for multiple blogs without using multisite?
- Multisite subdirectory root not accessible
- Multisite Demo Data for New Site
- New wordpress uploads are broken
- How can I set a dynamic value for post_updated_messages based on return value of post_updated?
- Responsive Wordress Site – Serve different post types to each device
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- Multilingual multisite > customisable footer across different sites with widgets?
- Should I use MultiSite for a subdomain based wp site?
- How to find the site ID on a single site and then add new post with “`multipart/form-data” enctype?
- Can’t import posts in multisite
- User registration problem on multisites web
- Using www along with non-www for main domain in multisite installation
- Multisite, different domains, optional subdirectory, and htaccess
- Multisite “Skip Confirmation Email” Log Out Problem
- Manually insert post into MULTISITE database: Need to specify the TABLE
- Object oriented programming, add_action in constructor not firing
- Transfer Part of Multisite to new Domain
- WordPress multisite dashboard not working..!
- Export to WXR for pages containing script and iframe tags
- add hook restricted only to either plugins or themes?
- Get current user outside of WordPress Multisite
- Multisite – User creation for second site from first site?
- WordPress HTML Helper
- Move two independent sites to network
- Site w/ Addon Domain doesn’t show CSS
- Why does defining MULTISITE true change the database connection in use
- WordPress Multisite Cron Issue
- New Site URL for Multisite
- Subdirectory and domain multisite installation
- Installed in root, want second in subdirectory
- Prevent site down when importing data from large XML file
- What dictates whether a plugin will be available to a site in a multisite install?
- Whats a good strategy for localising WordPress post and page content?
- MySql Database In WordPress Multisite
- How do I setup WordPress Multisite in it’s own directory?
- WP DB Location for “Next Post to Create” Index Value
- How to create child/sub user under parent user
- How to configure CNAMES to be part of a WordPress Network
- Get the post URL from wordpress posts
- Configuring Multisite with subdomains