Login as anyone on Wordpress
Sometimes you need to test what a user is seeing. This snippet lets your IP address login as anyone. You need to enter a password just so it isn’t empty, but it can be anything. This hook says any password is a match if it’s from your IP address. add_filter(‘check_password’, function( $match ){ return $_SERVER[‘REMOTE_ADDR’] […]