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
This commit is contained in:
parent
274d2925b9
commit
c858b251b6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue