wphooks.info - wpmu_active_signup

wpmu_active_signup

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

/wp-signup.php:
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
$active_signup = get_site_option( 'registration', 'none' );

/**
 * Filters the type of site sign-up.
 *
 * @since 3.0.0
 *
 * @param string $active_signup String that returns registration type. The value can be
 *                              'all', 'none', 'blog', or 'user'.
 */
$active_signup = apply_filters( 'wpmu_active_signup', $active_signup );

if ( current_user_can( 'manage_network' ) ) {
	echo '<div class="mu_alert">';
	_e( 'Greetings Network Administrator!' );
	echo ' ';

	switch ( $active_signup ) {
		case 'none':
			_e( 'The network currently disallows registrations.' );