Title: wp_login_form()
Last modified: November 21, 2023

---

# wp_login_form()

 *  Resolved [andy_moyle](https://wordpress.org/support/users/andy_moyle/)
 * (@andy_moyle)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wp_login_form/)
 * This plugin doesn’t seem to protect an instance of wp_login_form();
 * In particular
 * $out.=**wp_login_form**(**array**(‘echo’=>false));
 * How can I make it work?
    -  This topic was modified 2 years, 6 months ago by [andy_moyle](https://wordpress.org/support/users/andy_moyle/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp_login_form%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Alexandru Tapuleasa](https://wordpress.org/support/users/talextech/)
 * (@talextech)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wp_login_form/#post-17219596)
 * Hi,
 * For some reason wp_login_form doesn’t run the login_form hook that we use 🙁
   
   Since you are not echoing the output running do_action( ‘login_form’ ); probably
   won’t help you either.
 * Try adding the following before your wp_login_form() call:
   `add_filter( 'login_form_bottom',
   array('WPCaptcha_Functions', 'captcha_fields'));add_action( 'login_form_bottom',
   array('WPCaptcha_Functions', 'login_print_scripts'));
 * If that doesn’t work I don’t have any ideas 🙁
 *  Thread Starter [andy_moyle](https://wordpress.org/support/users/andy_moyle/)
 * (@andy_moyle)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wp_login_form/#post-17219699)
 * Doesn’t work – tried all sorts of ob_start() stuff too. Just can’t get the captch
   within the form when its not echo’d but returned.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp_login_form()’ is closed to new replies.

 * ![](https://ps.w.org/advanced-google-recaptcha/assets/icon-256x256.png?rev=2493018)
 * [Advanced Google reCAPTCHA](https://wordpress.org/plugins/advanced-google-recaptcha/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-google-recaptcha/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-google-recaptcha/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-google-recaptcha/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-google-recaptcha/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-google-recaptcha/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [andy_moyle](https://wordpress.org/support/users/andy_moyle/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/wp_login_form/#post-17219699)
 * Status: resolved