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