Extra Links Below the Login Form
Adds a row of links under the login box, such as Contact, Help or Terms of Use.
Opens WPIDE on
Code
// Label => URL.
$wpide_login_links = array(
'Help' => home_url( '/help/' ),
'Contact' => home_url( '/contact/' ),
'Terms' => home_url( '/terms/' ),
);
add_action( 'login_footer', function () use ( $wpide_login_links ) {
if ( empty( $wpide_login_links ) ) {
return;
}
$links = array();
foreach ( $wpide_login_links as $label => $url ) {
$links[] = sprintf( '<a href="%s">%s</a>', esc_url( $url ), esc_html( $label ) );
}
echo '<p class="wpide-login-links" style="text-align:center;margin:0 auto 24px;font-size:13px">' . implode( ' · ', $links ) . '</p>';
} );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.