WordPress filter hook · part of WordPress core

login_form_middle

A WordPress core filter that 16 plugins also fire themselves, running on 243K+ sites between them.

“Filters content to display in the middle of the login form.”

How to use login_form_middle

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'login_form_middle', function( $value, $args ) {
	// Change $value here.
	return $value;
}, 10, 2 );

Argument names come from Download Monitor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

16 plugins that fire login_form_middle

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Tutor LMS icon Tutor LMS90,000+ installs apply_filters( 'login_form_middle', '', '' ) templates/login-form-legacy.php:70
  2. Download Monitor icon Download Monitor80,000+ installs apply_filters( 'login_form_middle', '', $args ) src/MembersLock/classes/class-dlm-members-modal.php:228
  3. User Profile Builder icon User Profile Builder40,000+ installs apply_filters( 'login_form_middle', '', $args ) front-end/login.php:150
  4. Paid Membership Subscriptions icon Paid Membership Subscriptions10,000+ installs apply_filters( 'login_form_middle', '', $args ) includes/class-shortcodes.php:522
  5. FluentAuth icon FluentAuth10,000+ installs apply_filters( 'login_form_middle', '', $args ) app/Hooks/Handlers/CustomAuthHandler.php:1366
  6. FluentCommunity icon FluentCommunity8,000+ installs apply_filters( 'login_form_middle', '', $args ) Modules/Auth/AuthHelper.php:580
  7. Salon Booking System icon Salon Booking System2,000+ installs apply_filters( 'login_form_middle', '', array() ) views/shortcode/_salon_detail_content.php:106
  8. FluentAffiliate icon FluentAffiliate2,000+ installs apply_filters( 'login_form_middle', '', $args ) app/Modules/Auth/AuthHelper.php:797
  9. DirectoryPress icon DirectoryPress600+ installs apply_filters( 'login_form_middle', '', $args ) includes/user-functions.php:123
  10. Listdomer Core icon Listdomer Core300+ installs apply_filters( 'login_form_middle', '', $args ) app/includes/theme.php:330
  11. Thim Blocks icon Thim Blocks300+ installs do_action( 'login_form_middle' ) inc/Gutenberg/Blocks/LoginForm/LoginFormBlockType.php:285
  12. Oxygen Tutor LMS icon Oxygen Tutor LMS200+ installs apply_filters( 'login_form_middle', '', '' ) templates/global/login.php:91
  13. System Ticket Support icon System Ticket Support10+ installs apply_filters( 'login_form_middle', '', $args ) inc/functions/set-form-login.php:23
  14. Brigade Blocks Addons icon Brigade Blocks AddonsFewer than 10 installs apply_filters( 'login_form_middle', '', $wpbb_args ) build/modules/forms/login-form/render.php:152
  15. Lenxel AI LMS icon Lenxel AI LMSFewer than 10 installs apply_filters( 'login_form_middle', '', array() ) add-ons/form-ajax/ajax-login.php:82
  16. RefPress icon RefPressFewer than 10 installs apply_filters( 'login_form_middle', '', '' ) templates/partial/login-register.php:78
  17. Gutenberg Login Page Customizer icon Gutenberg Login Page CustomizerFewer than 10 installs apply_filters( 'login_form_middle', '', [ 'form_id' => $this->field_id( 'form' ), 'redirect' => $this->get_redirect() ] ) blocks/login/block.php:189

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.