From ac4774ddbd269ba9842f961b3d6a1ddd14b85f66 Mon Sep 17 00:00:00 2001 From: DrewAPicture Date: Tue, 4 Feb 2014 07:48:03 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/network/sites.php. Props NikV, kpdesign. Fixes #26124. git-svn-id: https://develop.svn.wordpress.org/trunk@27088 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/sites.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php index 5eae37eb9c..9b8973c462 100644 --- a/src/wp-admin/network/sites.php +++ b/src/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; }