automatically-link-post-titles-to-their-pages-in-the-content (1)

Automatically link Post Titles to their pages (in the content)

Posted on October 28, 2015

For my other blog (Code Quality Code) I’m referring a lot of times a other post as they are all connected to each other. Of course I wanted to automate things and not manually link every time I mention another blog post. To accomplish that I’ve made a small peace of code that will automatically […]

how-to-add-template-files-in-your-plugin

How to add template files in your plugin

Posted on October 21, 2015

If you’ve worked with WooCommerce before on a website then chances are you’ve also had to copy some of their templates files to your own theme in order to make sure structural changes to the page. This is a great system if you need to output HTML and still want to allow the end-user to […]

enable-disable-payment-gateways-for-specific-shipping-methods copy (1)

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 […]

highlight-a-custom-wordpress-menu

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 […]

wordpress-org-plugin-downloads

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 […]

use-media-selector-in-your-plugin

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 […]

woocommerce-advanced-fees

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 (1)

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 […]

Hide the admin bar conditionally

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 […]