Practical insights into my day to day
Writings and snippets from my day to day work as a freelance developer / consultant. Read up on helpful tips in WordPress, common issues with front-end development, but also the occasional tool or online marketing related reads.
Some Snippets
WordPress custom FAQ with Categories plugin
So I have been extracting a lot of code recently from several projects that I’ve done over 2020 and I am converting those independent solutions into plugins so that I can reuse them over time. Usually, my solutions allow developers to easily modify the styling and functionality. In order to also understand the plugin I…
Send Customised E-Mail Templates with WordPress (easily) and without a plugin.
Requirements Make sure you download the files from this libraryHave a place for you to the load the functions needed (plugin or theme files)A HTML template. I provide a basic one, but if you have one styled already. Please use that, mine is pretty basic.Your server needs to be able to send mail obviously. I…
Custom Contact form with REST API
Recently, I wanted to try to build a custom form because the design was quite complicated and using Contact Form 7 would force me to add a bunch of HTML in the Contact Form 7 options. Ofcourse, when clients are modifying forms, they can make mistakes, breaking the designs. This is what we want to…
React REST API Post request
In order to post the data we need to verify the origin of the domain. In WordPress it’s quite normal to have the verify_nonce available, but in React we need to be able to access the nonce. Below you can find the code for the post request. POST with Axios Make sure you have this…
React Forms and WordPress REST API
Recently, I built a plugin that actually contains a full React project with react-app. The app is actually a 3-step form with some validations. I thought it was easier to build it in React because of the component structure and the many validation standards. It was quite fun to build and I’d like to give…
Contact Form 7 Email validation
The Contact form 7 plugin is a very simple powerful plugin used in many different setups. I mainly use it because of it’s extensibility. There are many solutions out there for easily add additional functionality to it. One of them is to validate emails according to you own validation mechanism. Validate disposable emails For some…