Useful when you receive project delivery, and the idiot who delivers it forgets to tell you that the password is admin1234. Instead of being stuck without being able to run your tests, you just need to apply the following SQL query:UPDATE wp_users SET user_...
TBWritten byThomas Bourdin1 min read
Useful when you receive project delivery, and the idiot who delivers it forgets to tell you that the password is admin1234. Instead of being stuck without being able to run your tests, you just need to apply the following SQL query:
UPDATE wp_users SET user_pass = MD5( 'new_password' ) WHERE user_login = 'your-username';
Reproduce this customization today
The principle of the hook remains useful, but the administration screens and WordPress APIs have evolved since the publication. Test the code in a staging environment with the exact version of the site's core, theme, and plugins.
Save the files and the database before making any changes.
Control user capabilities, nonces, input validation, and output escaping.
Place customizations in a dedicated plugin or a child theme to preserve updates.