Automatically Log in as Admin without ID password
Automatically Log in as Administrator with a Single Click Automatically Log in as Administrator with a Single Click If you're a WordPress developer or site administrator, you might often need to log in to your site quickly for testing or debugging. Manually entering your username and password can be time-consuming, especially during development. To simplify this process, I’m sharing a handy code snippet that allows you to log in as the first administrator user with just a single click. How Does This Code Work? This code snippet is designed to automatically log you in as the first administrator user on your WordPress site when you add ?dev=1 to your site’s URL. Here’s how it works: Check for the Query Parameter : The code listens for the ?dev=1 parameter in the URL. If it detects this parameter, it triggers the login process. Find the First Administrator : It queries the WordPress database to find the first ...
2 Comments
Add this css - label.audio_check {
ReplyDeletedisplay: flex;
column-gap: 7px;
align-items: center;
font-size: 20px;
font-weight: bold;
font-family: serif;
color: #000;
}
This comment has been removed by a blog administrator.
ReplyDelete