Homepage

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

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, […]

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 up a totally new system for queuing tasks can be somewhat laborious. But no problem: fortunately, WooCommerce offers a ready-to-use library that you can rely on. Action Scheduler This is the name of the script that makes the background processing feature simple for WordPress. If you have […]

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 may feel disappointed. Luckily, WordPress is still PHP and can be used and manipulated in several ways – which means the MySQL database cane be also accessed by any other script. Github examples bring experiments using Eloquent or Doctrine for creating a bridge in which entities can […]

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 “devs” don’t use Git. While programming nowadays without any version control sounds like suicide, many so-called devs are sending ZIP files attached in e-mails or even via WhatsApp. Let’s not talk about the hundreds of tools for testing, deployment or code linting made possible by using Git […]

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. So you can admit backorders. Woocommerce, like many other shop scripts, allow managers to admit backorders from customers. All you need to do is to click in a checkbox, and done – customers now can buy even if stocks are empty. Now, a problem: what if sales […]

more

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. […]