Puddinq.com sharing knowledge

Puddinq.com - blog

Excel csv - snippet

This function writes a csv file to the folder it is run in.

Strip shortcodes from content

make shortcodes show / not work $content = str_replace( ‘]]>’, ‘]]>’, $post->post_content );

HTML to image

je hebt nodig html2canvas en canvas2image

Debug your custom code

One thing is to do quality checks, but if you wite your code in a certain way, it can check itself. In your wp-config

Gravity Forms image upload preview

Gravity forms is like magic, you can create a form with advanced options without any real knowledge of coding. The basic plugin does not offer a way to show image previews for uploaded images, but with a little extra code it is easily implemntated. The code is just copy paste while changing 2 numbers. Everybody […]

WordPress on PHP 7.2

As php is making it’s progress, and we were happy with the speed improvements coming from php 5.6 for php 7.0, 7.2 seems to top that pleasure with a slam dunk. But what are the effects for WordPress? This site is running php 7.2, so it is possible. Should you update? First The core seems to […]

WordPress embed YouTube without cookie

If you embed videos the usual way, youtube sets extra cookies in your users browsers. If you do not want this you need to embed itin a custom way with a custom link

WooCommerce - order info and order notification

We have two plugins in the puddinq repository, that enhance the WooCommerce order screen. One gives more information about the order products, the other an order notification when an order is placed. Order information Order notification

Remove jQuery migrate from WordPress

When WordPress is loaded it displays a jQuery migrate notice in the console. This means a part of software was loaded to be backward compatible. You can remove it:

jQuery make divs equal height

This little script can be run agains classes so all all items with that class are of equal hight. Sometimes it is impossible to make different items the same hight with css as the elements are flexibel and the size depends on the contents. The script looks at the heights of all items after loading […]