This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Steps: | |
# 1: Create file on etc/NetworkManager/dnsmasq.d | |
# 2: Filename example loc-tld | |
# 3: Restart system | |
local=/loc/ | |
address=/loc/127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'lostpassword_url', array( $this, 'add_args_to_lostpassword_url' ), 10, 2 ); | |
add_filter( 'login_url', array( $this, 'add_args_to_login_url' ), 10, 3 ); | |
add_filter( 'lostpassword_redirect', array( $this, 'add_args_to_lostpassword_redirect_url' ), 10, 1 ); | |
public function add_args_to_lostpassword_redirect_url( $url ) { | |
if ( $this->valid_blocked_user_id ) { | |
$url = empty( $url ) ? wp_login_url() : $url; | |
$url = add_query_arg( | |
array( |