Archive

Using Auto Draft Posts

There's no doubt that WordPress uses "Autosave" feature for some pretty valid reasons and it is very useful in certain scenario. Personally though I never liked this feature and find it to be not so useful for me as I am the only one who is and mo ...

Check if WooCommerce is Active

Over the past couple of years, I have written and shared number of snippets on WooCommerce which I hope helped some of you. Generally speaking, when I am sharing a snippet on WooCommerce, I do that with an assumption that you already have WooComme ...

How to Retrieve File Metadata in JavaScript

Web APIs are simply amazing when you want to build web applications. Perhaps it becomes obvious when your application is highly user focused. Today, I will discuss about how we can access file metadata for a selected file in HTML file input.

...

Validating Integer in PHP

Every now and then we need to check if the value of a variable is an integer or not. Recently I came across a forum thread where someone is trying to understand why his/her snippet is not giving the appropriate result that he/she is looking for. I ...

Query Posts Based on Serialized Meta Value

Recently I was working on an "inventory management" system where we I had to work with lots of products and their variations in color, size, sku, upc code, dimensions, price & other related data. Yes, I took help of meta box to take inputs an ...