This code used to work fine but after updating Wordpress, it doesn't seem to work anymore. I am not getting my custom link to appear. Any ideas?
function hook_lost_your_password ( $text ) {
if ($text == 'Lost your password?'){
$text .= '<br /><a href="/invitation/" class="neolog">Not a member? <span>Request an invitation.</span></a>';
}
return $text;
}
add_filter( 'gettext', 'hook_lost_your_password' );