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
509      <?php
510      do_action( 'signup_finished' );
511 }
512
513 // Main
514 $active_signup = get_site_option( 'registration' );
515 if ( !$active_signup )
516      $active_signup = 'all';
517
518 $active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"
519
520 // Make the signup type translatable.
521 $i18n_signup['all'] = _x('all', 'Multisite active signup type');
522 $i18n_signup['none'] = _x('none', 'Multisite active signup type');
523 $i18n_signup['blog'] = _x('blog', 'Multisite active signup type');
524 $i18n_signup['user'] = _x('user', 'Multisite active signup type');
525
526 if ( is_super_admin() )
527      echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing &#8220;%s&#8221; registrations. To change or disable registration go to your <a href="%s">Options page</a>.' ), $i18n_signup[$active_signup], esc_url( network_admin_url( 'settings.php' ) ) ) . '</div>';