💻 WordPress
-
WP-CLI: force output to a specific language (locale)
WP-CLI uses the same locale as the WordPress installation, so if you deal with multiple locales, it might be tricky to follow the output. Luckily, the official documentation shows how to set a specific locale. Here’s a quick summary, plus an important caveat I found: 1. Create a file called force-locale.php and set your desired…
-
Automatically log in to WordPress as an admin for local testing
I made a simple plugin with AI’s help that I use locally, so I don’t have to log in as administrator every time I reset a WordPress site to run tests. The initial plugin code had the credentials hard-coded, but before sharing it, I changed it to fetch the first admin user from the database.…
-
How to quickly reset WordPress and still keep themes plus some plugins
I use LocalWP to run WordPress locally, and I made a command to reset a site while keeping the themes and some plugins so I can quickly run various tests. For the script above, I used the steps from my previous guides about removing files (except certain subfolders) and using the trash command. I’ve added…
-
How to remove all files in a directory except specific subfolders in Zsh (Linux or Mac)
I’ve shared how to remove all files in a directory except specific subfolders in Bash, but unfortunately, this command doesn’t work for Zsh. After some tweaking, I was able to reproduce the same behavior, which is to remove everything inside wp-content/plugins/, except folders starting with dk- or exactly named auto-login, and index.php: Dry run Here’s…
-
MailPoet (WordPress Plugin) is not working on Firefox
When I opened MailPoet in the WordPress Dashboard using Firefox, nothing was showing, and the solution was so unexpected I had to share it.
-
How to remove all files in a directory except specific subfolders in Bash
Today I Learned how to delete all contents of a folder except specific subfolders using Bash.
-
Installing Local WP in Ubuntu: unmet dependencies libaio1 libncurses5
How the fix the unmet dependencies error.
-
How to install WordPress Studio in Ubuntu Linux
Excited about Studio’s launch for WordPress devs but bummed about no official Linux support? Here’s how to set it up on Ubuntu with a few tweaks and simple steps!