Using WordPress ‘login_link_separator’ PHP filter

The login_link_separator WordPress PHP filter allows you to modify the separator used between login form navigation links.

Usage

add_filter('login_link_separator', 'customize_login_link_separator');
function customize_login_link_separator($login_link_separator) {
    // your custom code here
    return $login_link_separator;
}

Parameters

  • $login_link_separator (string) – The original separator used between login form navigation links.

More information

See WordPress Developer Resources: login_link_separator

Examples

Change separator to a vertical line

Change the separator to a vertical line (|) between login form navigation links.

add_filter('login_link_separator', 'change_separator_to_vertical_line');
function change_separator_to_vertical_line($login_link_separator) {
    $login_link_separator = ' | ';
    return $login_link_separator;
}

Change separator to an arrow

Change the separator to a rightward arrow () between login form navigation links.

add_filter('login_link_separator', 'change_separator_to_arrow');
function change_separator_to_arrow($login_link_separator) {
    $login_link_separator = ' → ';
    return $login_link_separator;
}

Change separator to a bullet

Change the separator to a bullet () between login form navigation links.

add_filter('login_link_separator', 'change_separator_to_bullet');
function change_separator_to_bullet($login_link_separator) {
    $login_link_separator = ' • ';
    return $login_link_separator;
}

Change separator to a dash

Change the separator to a dash (-) between login form navigation links.

add_filter('login_link_separator', 'change_separator_to_dash');
function change_separator_to_dash($login_link_separator) {
    $login_link_separator = ' - ';
    return $login_link_separator;
}

Remove separator

Remove the separator completely between login form navigation links.

add_filter('login_link_separator', 'remove_separator');
function remove_separator($login_link_separator) {
    $login_link_separator = '';
    return $login_link_separator;
}