Marinus Klasen

Marinus Klasen

  • WordStress
  • Development
  • Consultancy
  • Developer Resources
  • Blog
  • Contact

Rename Coupon code text to Discount code in Woocommerce

November 3, 2022

Another day, another snippet! This snippet allows you to replace all occurrences of the coupon word to something that you like better, like “discount code”. This code is highly inspired from the code shared in WPBeaches’ blog post. It’s customized for usage in classes, and optimized as some occurrences were not replaced and the “Click […]

Continue Reading

Background-size cover in mPDF

October 22, 2022

It’s saturday today, and I found some time to work on some side projects.. This one is about generating PDF’s from HTML and.. I wanted to use a full-width background image that keeps the original ratio. Usually, it’s background-size: cover; that solves this, but not in mPDF.. In mPDF we use background-image-resize Really, that’s it. […]

Continue Reading

WordPress.com SSH & duplicating a WordPress.com website locally

October 11, 2022

A while back, WordPress.com enabled SSH access for Business and eCommerce plans. I recently had a look at what those environments look like. First test: WP-CLI commands. It’s great to see that commands like wp db export work just fine. You’re also allowed to create folders in the home directory, so we can easily export […]

Continue Reading

Hide the custom taxonomy metabox in the WordPress edit post screen

October 9, 2022

Since in this case i’m using ACF to define the taxonomies for a custom post type, I wanted to remove the metabox in the sidebar. Luckily, there’s no custom code required for this. We just need to set meta_box_cb to false. Did you know about show_admin_column as well? This argument allows you to show or […]

Continue Reading

Get all entries from Gravity Forms using GFAPI::get_entries

October 6, 2022

It is one of these days again. I’m breaking my head on this. And on those moments, I grab my blog and start writing an article about this specific problem. So let’s have a look. By default, 20 entries are returned. I need more, I need all! get_entries has 5 parameters, the form_id, search_criteria, sorting, […]

Continue Reading

Make a service available on a different port in docker-compose with Traefik

October 6, 2022

This is one of these things that I broke my head around a couple of times. And every time I need to do this, it takes me a fair amount of trial and error before solving it. Let’s get that over once and for all. (seriously, i’ll probably Google for this issue in about 6 […]

Continue Reading

Setting up xdebug and Webgrind in docker compose for in-depth PHP profiling

September 29, 2022

Yep – it’s necessary. I really need to dig into that page load; what’s happening in this evironment and why? It’s time to setup xdebug and webgrind. We’ll use the Geniem Oy’s images and repo for the foundation. I’m specifically interested in the webgrind service, and will add this to my docker-compose.yml file: I will […]

Continue Reading

WordPress, VS Code, Code Sniffers and Coding standards: The Right Way

September 28, 2022

Every now and then I make a change in my development environment and.. I am back at re-configuring the whole setup. Let’s get that over with once and for all. The setup that works This is my environment: Visual Studio Code with PHP Sniffer by wongjn Composer with squizlabs/php_codesniffer wp-coding-standards/wpcs The root of my workspace […]

Continue Reading

Supported file types on WordPress.com

September 9, 2022

While working on a project in which I wanted to automatically process any CSV files uploaded to the media library I encountered some issues with WordPress.com not allowing this file type. After an upload, WordPress.com kept buggin me with: 1 file could not be uploaded because the file type is not supported. Filters like mime_types […]

Continue Reading
  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 12
  • Next Page »

Get in touch

Contact me using the details below

Marinus Klasen

Wilhelmina van Pruisenweg 35, 2595 AN Den Haag

marinus@mklasen.com
twitter.com/marinusklasen
linkedin.com/in/marinusklasen

  • GitHub
  • LinkedIn
  • Twitter

Have you read?

  • Backup a full server to Hetzner Storage BoxesJanuary 2, 2026
  • Music I loveDecember 29, 2025
  • Running Github Actions and Workflows LocallyAugust 25, 2025
  • Elementor Widget UsageMarch 27, 2025
  • Programmatically showing popups with ElementorMarch 25, 2025

Copyright © 2026 ยท Marinus Klasen | Webdesign by Team Rood