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:
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.
-
Tutor LMS90,000+ installs
apply_filters( 'login_form_middle', '', '' )templates/login-form-legacy.php:70 -
Download Monitor80,000+ installs
apply_filters( 'login_form_middle', '', $args )src/MembersLock/classes/class-dlm-members-modal.php:228 -
User Profile Builder40,000+ installs
apply_filters( 'login_form_middle', '', $args )front-end/login.php:150 -
Paid Membership Subscriptions10,000+ installs
apply_filters( 'login_form_middle', '', $args )includes/class-shortcodes.php:522 -
FluentAuth10,000+ installs
apply_filters( 'login_form_middle', '', $args )app/Hooks/Handlers/CustomAuthHandler.php:1366 -
FluentCommunity8,000+ installs
apply_filters( 'login_form_middle', '', $args )Modules/Auth/AuthHelper.php:580 -
Salon Booking System2,000+ installs
apply_filters( 'login_form_middle', '', array() )views/shortcode/_salon_detail_content.php:106 -
FluentAffiliate2,000+ installs
apply_filters( 'login_form_middle', '', $args )app/Modules/Auth/AuthHelper.php:797 -
DirectoryPress600+ installs
apply_filters( 'login_form_middle', '', $args )includes/user-functions.php:123 -
Listdomer Core300+ installs
apply_filters( 'login_form_middle', '', $args )app/includes/theme.php:330 -
Thim Blocks300+ installs
do_action( 'login_form_middle' )inc/Gutenberg/Blocks/LoginForm/LoginFormBlockType.php:285 -
Oxygen Tutor LMS200+ installs
apply_filters( 'login_form_middle', '', '' )templates/global/login.php:91 -
System Ticket Support10+ installs
apply_filters( 'login_form_middle', '', $args )inc/functions/set-form-login.php:23 -
Brigade Blocks AddonsFewer than 10 installs
apply_filters( 'login_form_middle', '', $wpbb_args )build/modules/forms/login-form/render.php:152 -
Lenxel AI LMSFewer than 10 installs
apply_filters( 'login_form_middle', '', array() )add-ons/form-ajax/ajax-login.php:82 -
RefPressFewer than 10 installs
apply_filters( 'login_form_middle', '', '' )templates/partial/login-register.php:78 -
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.