Marinus Klasen

Marinus Klasen

  • Development
  • Consultancy
  • Developer Resources
  • Blog
  • Contact

wp-cli: wp db size in MB

July 15, 2022

Another short blog post that allows you to quickly copy the command to get you a human readable database size from wp-cli. wp db size shows you bytes. We can’t read that. Let’s make it human readable: It doesn’t get easier than that, Happy developing!

Continue Reading

WordPress Plugin: Copy Code from Block Editor Code Block

June 9, 2022

An easy way to copy code blocks from the WordPress Block Editor A plugin that I wanted to create for a while already, especially for this very site. Download the plugin here Example: Checkout the Github repo: https://github.com/mklasen/copy-code-blocks/

Continue Reading

Set a static IP for docker-compose containers

May 25, 2022

I have an amazing setup on my office. It’s an extended version of Halcyon, with a VPN and DNS container. But there is was one thing that was going wrong.. Each time I restarted the server (or that time when a power outage occurred), the container’s internal IP addresses would change. The VPN container, and […]

Continue Reading

Justified auto width and height in Media Carousel Widget in Elementor

May 18, 2022

Update: It appeared the solution below still had some horizontal scrolling/spacing issues. I’ve created a plugin to solve these. In order to solve these issues once and for all, I’ve created a plugin that updates the Swiper instance created by Elementor. Click here to download the plugin, or visit the Github repository After activating the […]

Continue Reading

Using the WordPress REST API

May 18, 2022

The WordPress REST API has become the go-to for any communication between the front-end and back-end. We’ve come a long way, from using admin-ajax to a professional, flexible and extendible REST API. Registering routes Registering a REST endpoint is pretty easy, below you’ll find some ready-to-use code, including the plugin headers. This is everything you […]

Continue Reading

Remove all edit post links in WordPress with a simple filter

May 11, 2022

Code snippet customization filter

How often do you actually click on a edit post link from within the content? For me.. almost never. I usually just click the Edit post/page link in the dashboard bar that’s shown in the top. If you’re like me, and just want to get rid of that link, add the following one-line filter to […]

Continue Reading

Registering block styles in WordPress with PHP

May 11, 2022

Sometimes you just want a block to show up a little different than the options that WordPress, or your theme provides by default. In those cases it’s nice and easy to just add a simple PHP plugin, or add a few lines of code to your functions.php It’s possible to influence the various options for […]

Continue Reading

Host key verification failed when connecting over SSH?

April 20, 2022

When there’s really no other option to connect over SSH and everything results in messages like “host key verification failed”, try adding the following parameter to your ssh command: This, as the name implies, disables strict host key verification and should allow you to login to SSH.

Continue Reading

Run VS Code server (Remote SSH) on Alpine

April 19, 2022

Update: I noticed a bunch of searches landing here because of VSCode 1.86 dropping support for glibc older than 2.28. If this is your issue, please read the VSCode docs here, or this Github issue. It basically means that you need to downgrade to VSCode 1.85 VS Code server requires glibc and libstdc++ and to […]

Continue Reading
  • « Previous Page
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 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?

  • Elementor Widget UsageMarch 27, 2025
  • Programmatically showing popups with ElementorMarch 25, 2025
  • The Elementor sanitize_settings errorSeptember 12, 2024
  • Announcing.. Wooping Shop Health!June 13, 2024
  • Swiper setup when using wp-scriptsMarch 14, 2024

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