API
Multi-Site Manager supports a variety of action hooks and filter hooks to allow others to build new plugins or integrate it with existing plugins.
Actions
- switch_site ( int new_site_id , int old_site_id )
- Called after the global current_site context is changed
- wpmu_add_site ( int site_id )
- Called when a site has been created.
- wpmu_update_site ( int site_id )
- Called after a site has been updated (
domainorpathchanged). - wpmu_delete_site ( object deleted_site )
- Called after a site has been deleted.
- wpmu_move_blog ( int blog_id , int old_site_id , int new_site_id )
- Called after a blog has been moved from one site to another.
Filters
- manage_sitemeta_descriptions ( array sitemeta_options )
- Called when displaying known sitemeta options. Allows authors of plugins that create sitemeta options to specify a friendly name for those options.
- manage_site_clone_options ( array sitemeta_options_to_clone )
- Called when building a list of sitemeta options. Allows authors of plugins that create sitemeta options to specify that those options should be cloned by default.
New Actions for 006:
- add_move_blog_option
- Use it to insert an option in the Move Blog and Assign Blog screens
- add_edit_site_option
- Use it to insert an option in the Edit Site screen
Changed Actions for 006:
- wpmu_update_site ( int site_id, array( ‘domain’ => previous domain name , ‘path’ => previous path ) )
- Altered to include information about the state of the site before the change was made