From c858b251b6f1af0124382ed460941b3c4fccd2c7 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 4 Feb 2014 07:49:14 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/network/sites.php. Props NikV, kpdesign. Fixes #26124. Built from https://develop.svn.wordpress.org/trunk@27088 git-svn-id: http://core.svn.wordpress.org/trunk@26960 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/sites.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 5eae37eb9c..9b8973c462 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -152,10 +152,25 @@ if ( isset( $_GET['action'] ) ) { case 'activateblog': update_blog_status( $id, 'deleted', '0' ); + + /** + * Fires after a network site is activated. + * + * @since MU + * + * @param string $id The ID of the activated site. + */ do_action( 'activate_blog', $id ); break; case 'deactivateblog': + /** + * Fires before a network site is deactivated. + * + * @since MU + * + * @param string $id The ID of the site being deactivated. + */ do_action( 'deactivate_blog', $id ); update_blog_status( $id, 'deleted', '1' ); break; @@ -217,6 +232,16 @@ if ( isset( $_GET['updated'] ) ) { $msg = __( 'Site marked as spam.' ); break; default: + /** + * Filter a specific, non-default site-updated message in the Network admin. + * + * The dynamic portion of the hook name, $_GET['updated'], refers to the non-default + * site update action. + * + * @since 3.1.0 + * + * @param string $msg The update message. Default 'Settings saved'. + */ $msg = apply_filters( 'network_sites_updated_message_' . $_GET['updated'], __( 'Settings saved.' ) ); break; }