Prevent perpetual WordPress login redirects in local and test installations

To prevent perpetual login redircet loops in local/development WordPress installations add this function to your wp-config.php (have it return the users ID you want to authenticate):

function wp_validate_auth_cookie($cookie='',$scheme='')
{
        return 1; // admin user id
}

Beitrag veröffentlicht

in

, ,

von

Schlagwörter: