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.