Hide userprofile fields like facebook url – in edit profile

When you give access to the backend for minimal users, you will want te reduce the available options to make it more easy. One thing is the edit user profile where there are a lot of unused options. By adding (or removing) classes in the list you can hide the fields. Find the class associated […]


WooCommerce Checkout require number if not ‘local pickup’

In the Netherlands WooCommerce removed the second address line. This made the error rate for people failing to insert the housenumber rise. I had two options, put the second line back and make it rweuired, or check if the one line that is there has a number in it..


There has been a critical error on your website. – WordPress

This option started in 2019. A friendly notice something is terribly wrong with the website. You might not feel it is friendly, and terribly might be an exaggeration. But anyway you are stuck.. if you are a normal user, like an editor you should contact the person maintaining the website. If you are the owner […]


WordPress 5.3 Gutenberblocks get better

This week WordPress released version 5.3 and the ‘Gutenberblocks’ are maturing. You can perfectly run WordPress without the blocks using the ‘classic editor‘ but the concideration list you might have is getting smaller.


load_plugin_textdomain is not working, how to debug

Loading the textdomain for a custom plugin can feel like a nightmare. It either works, or you are endlessly trying to alter it untill it workd. wp_debug is no help and there you feel you do not have any way to debug it. Untill now: load_plugin_textdomain does return true or false and if it is […]



Use costs shippingclass for all products in WooCoomerce cart

In a situation where you want the shipping costs determinined by a shipping class to apply for all products in the cart (and not use the highest price). /** * When one of the products has a ‘free-shipping’ class wich gives a discount on shipping * => and you want it to apply to all […]


Simple 301 redirects – Bulk Check

# Simple 301 Redirects – Bulk Check # Upload your CSV and verify every redirect is working. Workflow Requirements 1 Upload the plugin * WordPress installation 2 Activate the plugin * Administrator rights 2 Open admin page: ‘Bulk Redirect’ under tools * CSV file 4 Upload CSV * Mouse to press Run 5 Press Run […]


Translated publication date

There are multiple ways to display the publication date above the post and a few ways to translate. One shorthand way is as follows. /** * Translated publication date **/ echo date_i18n(‘j F Y’, strtotime(get_the_date()));    


Generate sourcemaps in twentynineteen for style.css

If you dived into ‘How to compile WordPress 5.0 twentynineteen sass files you might mis the sourcemaps for the style.css. The sourcemaps are not generated by any of the commands without a small adjustment. “scripts”: { “build:style”: “node-sass style.scss style.css –source-map true –output-style expanded && postcss -r style.css”, “build:style-editor”: “node-sass style-editor.scss style-editor.css –output-style expanded && […]