The built-in function woocommerce_customer_bought_product can be used to check if a user has bought an item.
These days I needed to extend the lifespan of the authentication cookie, and I thought I share with you how to do that. To make this change you need to apply a filter, so add the following snippet in functions.php:
As you may know, WordPress has introduced automatic updates since version 3.7. But I have to admit that I'm a control freak, meaning - in this case - that I prefer manual updates, made on my own terms when I want. There are a couple of ways in which to disable automatic updates. I'll list them below.
Sometimes it's a must to disable update notification for certain plugins because you don't want to overwrite the modifications you did before. Maybe it's not a best practice, but this could be the best solution in some cases.
Just a simple way to put your blog into maintenance mode without a plugin. Nothing more to say!