wphooks.info - register

register

The hook occurs in the following 4 files

wp-includes/general-template.php:
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
	/**
	 * 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.
	 *
	 * @since 1.5.0
	 *
	 * @param string $link The HTML code for the link to the Registration or Admin page.
	 */
	$link = apply_filters( 'register', $link );

	if ( $echo ) {
		echo $link;
	} else {
		return $link;
	}
}

/**
/wp-login.php:
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
<p id="nav">
<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
<?php
if ( get_option( 'users_can_register' ) ) :
	$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );

	echo esc_html( $login_link_separator );

	/** This filter is documented in wp-includes/general-template.php */
	echo apply_filters( 'register', $registration_url );
endif;
?>
</p>

<?php
login_footer('user_login');

if ( $switched_locale ) {
    restore_previous_locale();
/wp-login.php:
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
<p id="nav">
<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
<?php
if ( get_option( 'users_can_register' ) ) :
	$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );

	echo esc_html( $login_link_separator );

	/** This filter is documented in wp-includes/general-template.php */
	echo apply_filters( 'register', $registration_url );
endif;
?>
</p>

<?php
login_footer('user_pass');

if ( $switched_locale ) {
    restore_previous_locale();
/wp-login.php:
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
	</p>
</form>

<?php if ( ! $interim_login ) { ?>
<p id="nav">
<?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
	if ( get_option( 'users_can_register' ) ) :
		$registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );

		/** This filter is documented in wp-includes/general-template.php */
		echo apply_filters( 'register', $registration_url );

		echo esc_html( $login_link_separator );
	endif;
	?>
	<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
<?php endif; ?>
</p>
<?php } ?>