Lost Your password Hook Not Showing Up

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’ );

Read more here:: Lost Your password Hook Not Showing Up

Leave a Reply

Your email address will not be published. Required fields are marked *