Prevent access to WooCommerce downloadable products in WPEngine

If you are using WPEngine, WooCommerce and you sell digital products, then you might have realized that your downloadable products are public to anyone. You can use redirect rules to protect access to WooCommerce downloadable products in WPEngine. But now it has a feature called web rules that allows you to block access in a …

Prevent access to WooCommerce downloadable products in WPEngine Read More »

Responsive dynamic background images in WordPress

The most common ways to show images in a website are using the HTML tags <img> and <picture> or using the CSS property background-image. There are attributes in the HTML tags to show different images based on the browser viewport. Or you can use media queries to show different images with background-image. You could find …

Responsive dynamic background images in WordPress Read More »

Running PHPUnit tests in a WordPress plugin with Docker

Running PHPUnit tests in a WordPress plugin with Docker

There are several resource about running PHPUnit tests in a WordPress plugin with Docker. Here I want to share how I do it. You can find the configuration files in Github. I explain how to create the development instance in 5 steps: The folder structure Build a docker image to host the WordPress site Configure …

Running PHPUnit tests in a WordPress plugin with Docker Read More »

How to see the error logs in WordPress with Docker in Linux

Recently I was working in the development of a WordPress plugin and I didn’t find an easy way to see the error logs in WordPress with Docker. I started to read and learn about Docker some few time ago. I created a WordPress development instance using the official Docker image for WordPress in Docker Hub. …

How to see the error logs in WordPress with Docker in Linux Read More »

Hello World

I feel some outdated, I have been working in web development around 9 years ago and I started with LAMP stack for backend and jQuery and plain CSS for frontend. During these years, I have learnt and used different tools like Git, CakePHP, WordPress, SASS and Twitter Bootstrap to complete different projects. I have been …

Hello World Read More »