WordPress and PHP coding
Experiments, tutorials, scripts and possibilities in WordPress, key plugins and pure PHP to those who want to learn more together with us. References to latest changes on WordPress codex, classes and libraries built to help you coding better and a few tutorials and discussions useful for those who live WP daily.
RECENT
Boilerplates and plugins, and simpler is always better
Plugin development is key for anyone developing for WordPress. While themes are often created by agencies and web designers, plugins are definitely a programmer’s task. The structure for put up a new plugin in WordPress, and many other CMS platforms, is stupidly simple. All you need is a main file that brings, on top, the plugin info as a comments section. Having that said, by browsing Github it is possible to find uncountable boilerplates and […]
Plugins that webmasters should never use – SMTP
You’ve been hired as DEVELOPER to put up a company’s website. As the work evolves, you find out emails are not being sent. So you search for a SMTP an install it. Seriously… wouldn’t be that difficult to configure it by yourself. As a remind, WordPress has a built-in hook just for that. That’s nothing to do with any “devs pride”. You know, as developer, that most plugins bring a lot of crap on top […]
“Why my WordPress is so slow?” – here’s why
WordPress has been around for almost 20 years and never stopped evolving. If we took a look within the original code, that’d prove to be completely different than the current. Whether you like it or not, as a dev or even web designer you must agree: there is no comparison with any CMS from that same era. Drupal, Joomla, Typo3 and many others. They are still evolving and releasing new versions here and there, but […]
Stop using functions.php for coding
Best practices, in spite of their name, are rarely used. When it comes to add any code piece for WordPress, that becomes evident. Perhaps 99% of web designers and even some devs have been widely using the theme’s (or the child’s, for God sake) functions.php to include their own snippets. While this sounds like safe and a good practice, using any of the theme’s files, or even those from a child, can be taken as […]
CSS: why are you enqueing yet another stylesheet?
WordPress became the world’s largest CMS platform for a bunch of reasons. However, the main reason is certainly the way it can be enhanced with both plugins or code. Most people working for building WP websites nowadays are web designers, rather than fullstack or PHP devs. No problem here, and some of them already use top-notch frontend tools which avoid JS/CSS bloat or redundancy. Unfortunately, when it comes to create or tweak themes or plugins, […]
more
How to easily implement background processing in a WP website
Background processing can be a pretty handy feature on websites with huge traffic. Some WP plugins successfully use that to reduce the bloat of consuming tasks. However, put […]
Generating entities from WP database with Propel ORM
Sometimes the way WP structure of making queries can be a pain in the ass. It works indeed, but most of those who opt for an OOP way […]
Coding for WP without Git – are you really a dev?
Lately I’ve been involved in a couple of WP dev projects that also involved some other professionals. Sadly, that proved an old theory of mine: most WP plugin […]
How to limit Woocommerce’s backorders
Stocks are key for any e-commerce. They tell you how many items you can actually offer. But sometimes you want customers to buy, even if stocks are gone. […]
Headless wordpress and why it mostly doesn’t make any sense
Well, a simple search in the web nowadays and you can find thousands of tutorials about using WordPress in a headless way. As modern as it sounds, the […]
WordPress 5.8 – template editor can be a game changer
WordPress 5.8 will ship with the new template editor. Like Elementor and some other editors, this can be a game changer not only for designers – but especially […]
How to async or defer JS to make Google happier
SEO gurus and website owners became paranoid with Page Insights’ issues lately. Although most of them simply refuse to understand how a 100% optimization may affect the number […]
WP-CLI: first steps on WordPress’ command line tools
Before any trend of using Composer, NPM, Yarn or any other command line tool within WordPress’ themes and plugins development, devs have already been using a set of […]
Best and worst builders for WP developers
Website builders and block editors are consolidated within WP community. And even for devs, losing time with layouts is useless when you cancache just build templates in minutes. […]
Making error 500 easier to find and fix in WordPress
Debugging is part of any developers or even web designer or site administrator. However, some errors and exceptions are really hard to track, as messages are not clear […]