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
This commit is contained in:
parent
050e4f26e9
commit
ac4774ddbd
|
@ -152,10 +152,25 @@ if ( isset( $_GET['action'] ) ) {
|
||||||
|
|
||||||
case 'activateblog':
|
case 'activateblog':
|
||||||
update_blog_status( $id, 'deleted', '0' );
|
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 );
|
do_action( 'activate_blog', $id );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'deactivateblog':
|
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 );
|
do_action( 'deactivate_blog', $id );
|
||||||
update_blog_status( $id, 'deleted', '1' );
|
update_blog_status( $id, 'deleted', '1' );
|
||||||
break;
|
break;
|
||||||
|
@ -217,6 +232,16 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
$msg = __( 'Site marked as spam.' );
|
$msg = __( 'Site marked as spam.' );
|
||||||
break;
|
break;
|
||||||
default:
|
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.' ) );
|
$msg = apply_filters( 'network_sites_updated_message_' . $_GET['updated'], __( 'Settings saved.' ) );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue