your code is correct, however, that filter only applies to the wp_login_form()
function, which is not what wp-login.php
uses, so you won’t be seeing your text there if that’s what you’re expecting! try adding a call to wp_login_form()
in a template to see what the filter does.