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.
Usage
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(string)
- The HTML code for the link to the Registration or Admin page.
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
register
wp-includes/general-template.php 713
$link = apply_filters( 'register', $link );
wp-login.php 916
echo apply_filters( 'register', $registration_url );
wp-login.php 1080
echo apply_filters( 'register', $registration_url );
wp-login.php 1559
echo apply_filters( 'register', $registration_url );