WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
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.
Line | Code |
---|---|
650 | $active_signup = get_site_option( 'registration', 'none' ); |
651 | /** |
652 | * Filter the type of site sign-up. |
653 | * |
654 | * @since 3.0.0 |
655 | * |
656 | * @param string $active_signup String that returns registration type. The value can be |
657 | * 'all', 'none', 'blog', or 'user'. |
658 | */ |
659 | $active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); |
660 |
|
661 | // Make the signup type translatable. |
662 | $i18n_signup['all'] = _x('all', 'Multisite active signup type'); |
663 | $i18n_signup['none'] = _x('none', 'Multisite active signup type'); |
664 | $i18n_signup['blog'] = _x('blog', 'Multisite active signup type'); |
665 | $i18n_signup['user'] = _x('user', 'Multisite active signup type'); |
666 |
|
667 | if ( is_super_admin() ) |
668 | echo '<div class="mu_alert">' . sprintf( __( 'Greetings Site Administrator! You are currently allowing “%s” 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>'; |