wpmu_active_signup
Filters the type of site sign-up.
Использование
add_filter( 'wpmu_active_signup', 'wp_kama_wpmu_active_signup_filter' ); /** * Function for `wpmu_active_signup` filter-hook. * * @param string $active_signup String that returns registration type. The value can be 'all', 'none', 'blog', or 'user'. * * @return string */ function wp_kama_wpmu_active_signup_filter( $active_signup ){ // filter... return $active_signup; }
- $active_signup(строка)
- String that returns registration type. The value can be 'all', 'none', 'blog', or 'user'.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
В файле: /wp-signup.php
wpmu_active_signup
wp-signup.php 933
$active_signup = apply_filters( 'wpmu_active_signup', $active_signup );