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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

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
813
814 /**
815  * Filters the type of site sign-up.
816  *
817  * @since 3.0.0
818  *
819  * @param string $active_signup String that returns registration type. The value can be
820  *                              'all', 'none', 'blog', or 'user'.
821  */
822 $active_signup = apply_filters( 'wpmu_active_signup', $active_signup );
823
824 if ( current_user_can( 'manage_network' ) ) {
825      echo '<div class="mu_alert">';
826      _e( 'Greetings Network Administrator!' );
827      echo ' ';
828
829      switch ( $active_signup ) {
830           case 'none':
831                _e( 'The network currently disallows registrations.' );