WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Filter Reference/register

Description

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. This filter is part of the wp_register() function.

Parameters

$link
(string) (required) The HTML code for the link to the Registration or Admin page.
Default: None

Examples

The following changes the register link:

add_filter( 'register', 'my_register_link' );
function my_register_link( $link ) {
    return 'http://exampledomain.com/my_register_page/';
}

Change Log

Since: 1.5

Source File

register is located in wp-includes/general-template.php

Related

  • register