Skip to content
Pramod Jodhani
  • Menu Item
  • Menu Item
  • Menu Item
  • About
  • Contact
Night Mode
Text Size

WordPress and WooCommerce expert

Uncategorized

How to set minimum and maximum purchasable quantity for a WooCommerce product without any plugin.

Posted on Updated February 17, 2023June 7, 2020 by Pramod Jodhani

One of the best things about WooCommerce which makes it so widely adapted e-commerce platform is it’s customizability. With this little peice of code we can limit the minumun purchasable quantity for all products in the site If you want to add this restriction for only a certain product then you only need to make […]

Basic Rate-limiting in WooCommerce with native class

Posted on Updated February 17, 2023June 4, 2020 by Pramod Jodhani

WC_Rate_Limiter is a great little utility class in WooCommerce codebase which is not very popular but could be very helpful at times. I accidentally stumbled upon it while reading the source code of WooCommerce and thought of sharing it on my blog. You would want to use rate-limiting to prevent user from performing an action […]

WooCommerce is_catalog() function

Posted on Updated February 17, 2023June 2, 2020 by Pramod Jodhani

WooCommerce has some great conditional tags. But sometimes, you might need to run your code on all the catalog pages. Catalog page is basically any page where WooCommerce shows products in a loop. These could be : There is no such function in WooCommerce but we can easily create on like this: When to call […]

How does URL rewriting work internally in WordPress?

Posted on Updated January 12, 2020May 5, 2019 by Pramod Jodhani

I personally feel understanding how WordPress handles permalinks and how the URLs are translated to show the correct templates and posts explains a great deal about how WordPress works. When I initially started learning WordPress development, I had experience in building PHP applications, still, I got very confused learning WP because of the abstraction involved. […]

How to pass a JSON string in Command line with PHP

Posted on Updated April 23, 2019April 23, 2019 by Pramod Jodhani

If you try to pass a JSON string as a command line argument in the Terminal like this: It is expected to that $argv[1] will contain the JSON string. But unfortunately, it gets chunked. This is what you get when you do a print_r : This is not desired. We want the whole JSON string […]

How to build a Gutenberg Block with HTM

Posted on Updated February 22, 2019February 1, 2019 by Pramod Jodhani

I love HTM for it’s simplicity. HTM allows you to write JSX like syntax but without Webpack, and other complexities. The great thing about HTM is that it’s just 700 bytes. That’s right. When you setup a Webpack environment it’s very easy to reach 200MB+. Webpack might be good for complex applications but I wouldn’t […]

How to create a Facebook APP ID and Secret key

Posted on Updated January 2, 2019October 5, 2018 by Pramod Jodhani

This article will show you how to create a Facebook App Id, Secret key and Access API information for integrating Facebook into your app or website. Step 1:- Login to Facebook developer’s website with your Facebook credentials. Then Create an application by clicking on My Apps >Add New App Step 2:- Enter a Display Name […]

Why I use Enfold theme in all my WordPress projects

Posted on Updated March 17, 2018March 16, 2018 by Pramod Jodhani

I was pretty aware regarding the fact that in order to get a fully functioning and a professional looking website, I need to pay some bucks for a WordPress theme rather than going for a free alternative. I got to know about the Enfold WordPress theme and tried my hands on it. It was about […]

Posts pagination

Previous page Page 1 Page 2
© 2025 Pramod Jodhani