Here is my current code.
function custom_login_footer() {
return '<p>text text text</p>';
}
add_filter('login_form_bottom', 'custom_login_footer');
I am trying to add text below the submit button, but I do not know how to apply the login_form_bottom
filter.
your code is correct, however, that filter only applies to the
wp_login_form()
function, which is not whatwp-login.php
uses, so you won’t be seeing your text there if that’s what you’re expecting! try adding a call towp_login_form()
in a template to see what the filter does.