WordPress plugin development
-
Who Asked for This Setting? The YAGNI Principle in WordPress on 4wp.dev
Who asked for this setting? YAGNI, “You Aren’t Gonna Need It”, is the principle behind every option you deleted because nobody ever used it. Where YAGNI comes from…
-
WordPress REST API: Schema & Validation
In the WordPress REST API, args do the checking for you. Mark a param as required and core answers 400 restmissingcallbackparam before your callback runs. Give it a…
-
12 Classes for One Shortcode: the KISS Principle in WordPress on 4wp.dev
12 classes. For one shortcode. KISS, “Keep It Simple, Stupid”, sounds obvious until you review a plugin that needs a container, a factory and an interface to print…
-
Can DRY, KISS, YAGNI and SOLID Live Together? Essential Principles on 4wp.dev
Coding principles you think you know: YAGNI, KISS, DRY and SOLID. OOP is not one of them. It is the tool underneath that you use to apply them.…
-
WordPress Abilities API: what is this?
The Abilities API is the list of what your WordPress site can do and what it allows. Core, your theme and your plugins each add their own abilities.…







