WordPress filter hook
two_factor_login_backup_links
Defined by Two Factor and fired by 3 plugins in total, running on 100K+ sites between them.
“Filters the links displayed on the two-factor login form.”
How to use two_factor_login_backup_links
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:
add_filter( 'two_factor_login_backup_links', function( $links ) {
// Change $links here.
return $links;
}, 10, 1 );Argument names come from Two Factor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
3 plugins that fire two_factor_login_backup_links
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Two Factor100,000+ installs
apply_filters( 'two_factor_login_backup_links', $links )class-two-factor-core.php:1343 -
Fuerte-WP80+ installs
apply_filters( 'two_factor_login_backup_links', $links )includes/two-factor/class-two-factor-core.php:1380 -
Advanced Members for ACF20+ installs
apply_filters( 'two_factor_login_backup_links', $links )core/modules/2fa/class-two-factor-bridge.php:642
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.