Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wpmu_active_signup

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
888
889 /**
890  * Filters the type of site sign-up.
891  *
892  * @since 3.0.0
893  *
894  * @param string $active_signup String that returns registration type. The value can be
895  *                              'all', 'none', 'blog', or 'user'.
896  */
897 $active_signup = apply_filters( 'wpmu_active_signup', $active_signup );
898
899 if ( current_user_can( 'manage_network' ) ) {
900      echo '<div class="mu_alert">';
901      _e( 'Greetings Network Administrator!' );
902      echo ' ';
903
904      switch ( $active_signup ) {
905           case 'none':
906                _e( 'The network currently disallows registrations.' );