Categories
WordPress

You Don’t Need Your Own Admin Menu Item

I logged into a client’s WordPress backend and the bottom part of the admin menu looked like this: Why are there so many menu items?! I mean come on, the site is using 38 plugins, and there are 14 new menu items (not all shown in the screenshot). In my case, 37% of plugins have […]

Categories
WordPress

Post Meta with Emojis Won’t Save 🐷

tldr: Convert your DB columns to utf8mb4 to support emojis / special characters everywhere in WordPress tldr2; Or do a urlencode when saving, and urldecode when getting the post meta. I recently did some client work that involved allowing users to generate their own image (canvas) that contained their name and a bunch of other decorative […]

Categories
WordPress

Bad Code Comments and How to Avoid Them

Comments are very important and that everyone should strive to comment their code well. Without them, developers will lose tons of hours trying to trace and understand code.