Categories
Development WordPress

One Command to Add All New Files and Delete Removed Files SVN

When developing WordPress plugins, SVN is still used. It’s only used for plugin deployment though, not really during development. So your typical actions are just add files, remove files, tag a directory and commit. I always found adding and removing files such a hassle, so here’s a short script that does it for you.

Categories
WordPress

How to Get the Actual Number of Active Installs of Your WordPress Plugin

In the WordPress Plugin Directory, plugins have an Active Install metric, but it isn’t anywhere near accurate. It only shows a heavily rounded value and not the actual number, values like 10+, 500+, 10,000+ active installs. I’ll show you how to get the actual number of active installs of your WordPress plugin using some investigation […]

Categories
Development WordPress

How to Run Code When the Block Editor Initializes (Gutenberg)

When you want to run some code right after the Block Editor / Gutenberg initializes, the documentation provides little to no clues on how to do this. Here are 2 ways you can run your code right after the Block Editor initializes.

Categories
WordPress

How to Make Twenty Twenty’s Cover Template Content Full-Width

WordPress 5.3 shipped with a new default theme named Twenty Twenty. It’s clean, and looks amazing especially with content created with the Block Editor. There’s a full-width template as well that worked fine, unlike in Twenty Nineteen before when the content leaned over to one side of the screen and we needed to use workarounds […]

Categories
Development WordPress

How to Get People to Rate Your Plugin in the WordPress Plugin Directory

The WordPress Plugin Directory is the main source where users find plugins. For most plugin authors, it’s the battle arena that can make or break a plugin. I’ll show in this article how I got almost 200 plugin ratings for my plugin Stackable.

Categories
WordPress

A Page Builder Creator’s Opinion: Embrace Gutenberg

It’s just a matter of time when Gutenberg will hit WordPress Core. As days go by, we’re getting closer and closer to an eventual merge. So to get ahead of the game, my team and I took almost month studying Gutenberg, and ended up releasing a plugin called Stackable – Ultimate Gutenberg Blocks. Throughout our experience, […]

Categories
WordPress

A Page Builder Creator’s Opinion of Gutenberg

Gutenberg. People say it’s a page builder killer. And being that I’ve created my own page builder (Page Builder Sandwich – which is currently having a major rebuild btw), I’m obviously concerned. How will it impact my business? My competitors’ business? Will it kill all page builders? I don’t know. But if it does then […]

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.