API
Networks for WordPress supports a variety of action and filter hooks to allow others to build new plugins or integrate it with existing plugins. In addition to those listed here, Networks also supports legacy hooks from the old Multi-Site Manager.
Actions
- switch_network ( int new_site_id , int old_site_id )
- Called after the global current_site context is changed
- wpms_add_network ( int site_id )
- Called when a Network has been created.
- wpms_update_network ( int site_id, array( ‘domain’ => previous domain name , ‘path’ => previous path ) )
- Called after a Network has been updated (
domainorpathchanged). - wpms_delete_network ( object deleted_network )
- Called after a Network has been deleted.
- wpms_move_site ( int blog_id , int old_site_id , int new_site_id )
- Called after a site has been moved from one Network to another.