register filter-hookWP 1.5.0

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

wp_register()
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 );

Where the hook is used in WordPress

Usage not found.