WordPress filter hook · part of WordPress core

auth_redirect_scheme

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

“Filters the authentication redirect scheme.”

How to use auth_redirect_scheme

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

functions.php
add_filter( 'auth_redirect_scheme', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from Login rebuilder'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 →

6 plugins that fire auth_redirect_scheme

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

  1. Login rebuilder icon Login rebuilder20,000+ installs apply_filters( 'auth_redirect_scheme', '' ) login-rebuilder.php:927
  2. BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor icon BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor1,000+ installs apply_filters( 'auth_redirect_scheme', '' ) front-end/push/brikpanel-pwa-entry.php:116
  3. Ultimate Multisite icon Ultimate Multisite100+ installs apply_filters( 'auth_redirect_scheme', '' ) inc/sso/auth-functions.php:265
  4. Jovvie Point of Sale POS for WooCommerce icon Jovvie Point of Sale POS for WooCommerce100+ installs apply_filters( 'auth_redirect_scheme', '' ) includes/Operator/AdminGate.php:156
  5. NO SSL Flash Upload icon NO SSL Flash Upload10+ installs apply_filters( 'auth_redirect_scheme', '' ) aaron-no-ssl-flash-upload.php:110
  6. Loyal Security icon Loyal Security10+ installs apply_filters( 'auth_redirect_scheme', '' ) src/Modules/Auth/LoginUrlGuard.php:168

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.