WordPress PHP

Object orientated programming and namespaces in wordpress

Object orientated programming and namespaces in wordpress

Recently I did a 4 parts tutorial Tom McFarlin wrote on object orientated programming and namespaces in WordPress and it really shed some light on both subjects for me. The link. IT, webdesign ... programming they all come with the aspect of learning. Like PHPStorm...

WordPress Rewrite urls to pretty permalinks

WordPress Rewrite urls to pretty permalinks

Wordpress is brilliant and handles a lot out of the box. This post goes beyond that. In settings you can influence your permalinks. You can build structures with prefixes, categories, tags, and dates but that's about it, what if you want to use acf fields for...

add capability on plugin activation

add capability on plugin activation

In the situation below is a class with two methods which could be hooked to plugin (de)activation. The first gets the user with the same e-mail address as the website (settings->general) and adds a capability to that user. The second removes the capability from all...

WooCommerce

Add attachment to WooCommerce mail for certain products

Add attachment to WooCommerce mail for certain products

Lets say you want an attachment.pdf added to an completed order mail in WooCommerce if certain products are in the order. How do you add and attachment in that case? With the following code you be able to select one of the mails send in the proces and add the...

woocommerce list and compare

woocommerce list and compare

Plugin that lists and compares products. WooCommerce is a very nice free plugin for WordPress. WooCommerce Pud is a complementary plugin that offers two abilities: to list products and compare them. Both functionalities are not standard in WooCommerce and...