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
Creating your own WordPress hooks
Decades were gone and WordPress is still the most used CMS solution globally. It evolved, of course, settling its market, but in my opinion part of the success can be explained by an old feature – WP hooks. Hooks are specific points with the WP code which allow devs to “hook”, filter or alter anything. This is particularly useful when you are developing plugins and even themes. Hooks provide a simple way of change or […]
Problems while migrating WP websites? Here are the solutions
Migrating WordPress websites is something that happens all the time. Either because it needs to move to a new host or motivated by downtimes and malicious attacks, any webmaster has already needed to proceed a migration at least once. However, no matter how good those migration plugins become, we are still facing issues here and there. Well, so let’s talk about the most common issues on that and how to solve them easily. URLs can […]
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 […]
more
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 […]
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 […]
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 […]