Enable/Disable payment gateways for specific shipping methods

Posted on October 14, 2015

There are different reasons why someone wants to specifically enable or disable specific payment gateways for some shipping methods. In this post I will show you how you can enable or disable payment gateways based on the shipping method with a code snippet. Disable payment gateways for shipping methods For this example I will disable […]

Keeping a different (sub-) menu highlighted in WordPress

Posted on September 30, 2015

I’ve already written dozens of WordPress plugins. In some of these plugins I use a Custom Post Types to allow users to setup and configure certain elements the way they want. When, for example, building a WooCommerce extension and I need a settings area, this could go under the WooCommerce -> Settings pages by creating a new page as […]

How to include your WordPress.org plugin download count

Posted on September 25, 2015

My current number of downloads is; For my new website that I launched a couple months ago I included a ‘live’ download counter from my WordPress.org plugins. There are a couple ways of adding a counter like that on your site, and one way would be to download and use a existing plugin from the […]

How to include the WordPress media selector in your plugin

Posted on September 25, 2015

Recently I had to include a image selector in one of the plugins I was developing. Going for the pure WordPress look and feel, I really wanted to use the image selector everyone knows from the ‘Add Media’ button when you modify a post. To accomplish this, you’d need to go through a couple of […]

Introducing WooCommerce Advanced Fees

Posted on September 16, 2015

A couple weeks ago a new plugin I developed has been released on Shop Plugins. The plugin is named WooCommerce Advanced Fees and as you may imagine it will allow you to set extra fees for an order. As my other ‘advanced’ plugins that I’ve developer this one also has a conditional logic system in […]

Redirect users after add to cart

Posted on September 09, 2015

There is a default option in WooCommerce that lets you redirect users directly to the cart when they’ve added a new product to their cart. If you want to redirect users to lets say a landings page, you can do that by adding a small code snippet. Redirect users to cart after add to cart This […]

Hiding the Admin Bar (Conditionally)

Posted on September 02, 2015

There are dozens of reasons to want to hide the WordPress admin bar. Hiding the admin bar is quite easy and can be done with one line of code. This removes the admin bar from everyone even the admins so you may want to conditionally hide the admin from specific users (roles) only. One common […]

11 Things I Wish Someone Told Me When I Started Programming

Posted on August 25, 2015

Becoming a programmer is not easy and it requires a certain kind of person. A couple requirements are that you need good analytical insight and be a logical thinker. When you decided to become a programmer you’re up for a big challenge learning and understanding a whole new (programming) language (or 2, 3, 4…). Things […]

Automatically add IDs to your headings

Posted on July 17, 2015

At this point I’m starting to write more and more blog posts. Every now and then I get a couple questions from people that I’ve covered in a blog post before and I will send them a link to that blog post. This works great, but can be a bit lacking if you want to specifically […]

Order WooCommerce orders per user role

Posted on July 10, 2015

There are a lot of people who use WooCommerce to sell their products to customers and wholesalers. For those people who are it would be nice to be able to display all orders that are made by wholesalers or customers. In this post I will show you how you can easily add a new drop […]