register
Filters the HTML link to the Registration or Admin page.
Users are sent to the admin page if logged-in, or the registration page if enabled and logged-out.
Использование
add_filter( 'register', 'wp_kama_register_filter' ); /** * Function for `register` filter-hook. * * @param string $link The HTML code for the link to the Registration or Admin page. * * @return string */ function wp_kama_register_filter( $link ){ // filter... return $link; }
- $link(строка)
- The HTML code for the link to the Registration or Admin page.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
register
wp-includes/general-template.php 724
$link = apply_filters( 'register', $link );
wp-login.php 920
echo apply_filters( 'register', $registration_url );
wp-login.php 1084
echo apply_filters( 'register', $registration_url );
wp-login.php 1566
echo apply_filters( 'register', $registration_url );