According to wpseek.com, there exist hooks for unarchive_blog
, archive_blog
, and deactivate_blog
. You can examine them in the source on WordPress’s Trac site:
All of them use the $blog_id
parameter. Try changing your function to reflect that:
add_action( 'archive_blog', 'wp_clear_cache_custom' );
function wp_clear_cache_custom( $blog_id ) {
wp_cache_clear_cache( $blog_id );
}
Related Posts:
- How to add Custom Blog Options to new blog setup form?
- WordPress Multisite: Adding actions to only one site
- WP Multisite: Adding pages on blog creation by default
- Perform action on WPMU blog deletion
- Hook filter to change wp_upload_dir() path in multisite
- Add site options UI in Multisite Sites > Infos page
- Make default new sites https (multisite)
- 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?
- Which action hook to update custom field at network/site-info.php in multisite on update site info
- personal_options hook on WordPress multisite
- What do I need to do to convert my MultiSite from HTTP to HTTPS?
- WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me
- SSL wildcard issue for wp multisite subdomains
- How to set configuration options for particular sub blogs?
- Changing Multisite themes on mass
- Organize uploaded media files
- How to upload images manually to wordpress?
- MU domain mapping login issue
- Sitemap Plugin for WordPress Network
- How to make WordPress use new Upload Path settings in Multisite Setup
- Using WP CLI to set options in WP Multisite
- Import a regular WordPress blog into a MU installation
- Basic analytics across WordPress Multisite network [closed]
- Synchronizing Two WordPress Sites Content
- Multisite Independent User Base
- Sharing Header Components Across Multisite
- Why is my multisite installation not showing all the available sites?
- Issue converting single site to multi-site – blogs.dir folder not created
- WP_INSERT_POST issue on WordPress Multisite
- PHP Notices appear when browsing any page in admin, but only for child theme, using code from WP Codex
- What is the most efficient way to have two “blogs” on one site?
- Preview posts returns 404
- How can I have multiple URLs pointing to single WordPress installation?
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- Redirect subdomain homepage to domain specific page in wordpress multisite
- Make WordPress Search for Both Main Domain and Subdomain
- Create a network of blogs with WordPress 3
- create new site subsite in wordpress multisite by subscriber user instead of network admin
- Retrieving data from specific multisite blog
- Error 404 on Network Admin and others
- Retrieving multisite blog IDs, somehow failing to foreach them properly
- Get just subdirectory name from a multisite URL
- Why my deleted url is redirecting to random post?
- Reset a site in multisite
- How to change home or site url using action hooks or filter?
- Problem uploading images
- Multisite – 404 when accessing sub-sites
- Redirect Site Geologically
- WordPress Network admin options page: how to store options and where will they be stored?
- How to use a Wildcard SSL with WordPress Network?
- Migrating wordpress multisite and domain mapping plugin
- Wrong filepaths and admin page infinite reload after migrating to aws bitnami
- Multisite not using subdomains as hostname in from address when sending emails
- Cookie signed verification failed – wp-saving-post
- Do I need a Multisite? [closed]
- Error: reassigning content to a different user is not supported on multisite
- Run additional service on domain with WordPress Multisite?
- Development of new theme and rollout on multisite
- Update configured themes
- metaboxes disappear on saved pages
- User registration on two sites in same multisite
- 404 on page 2 multisite
- How many databases do I need?
- How to sync roles across Multisite?
- How can I append blog_id to … echo [functions-defined-constant]?
- Multisite Subdirectory Site Dashboard redirect loop
- Is it possible to disable html code error auto fixing feature by wordpress 4.9.1?
- WordPress Multisite Add User
- LimitInternalRecursion error
- Some permalinks are not working and show 404
- Should I use Multi Site to achieve different designs for different sections?
- WP MS: How to query over the network
- unable to access network admin of a blog
- User registration is currently not allowed
- WPMU on MySQL limited to 1GB of space?
- WordPress Multisite Permalinks on mapped domain = server 404 error
- Sites network with sub-folders
- Set my own password when registering a multisite user or site
- Efficient way to fetch all archived WPMS blogs
- Setup another new subdomain root on top of multisite configuration
- WordPress keeps deleting user account for multisite after loggin out i need your help please?
- Change main site / network admin site?
- Internet explorer not finding right content from multisite
- Change WordPress multisite to sub-folder installation
- Serve theme and plugins assets from correct domain on multi-domain multisite
- Themes are visible in Network, but invisible in sites
- logging out with/without confirmation – single site, multisite
- Multisite different domains mapping error on GGS
- WordPress Multisite wp-admin/ redirect loop but adding index.php works fine
- Can WP multisite manage multiple ccTLDs
- Should i use multisite for my business?
- WordPress Network with SSL for multiple domains
- WordPress Multisite redirect loop
- How to Create WPMu New User?
- WordPress Multisite Subsite WP admin not working
- Multiple WordPress sites on one hosting [closed]
- Run WordPress multisite from secondary volume on AWS EC2