Marinus Klasen

Marinus Klasen

  • Development
  • Consultancy
  • Developer Resources
  • Blog
  • Contact

Re-scheduling a cronjob in WordPress with WP-CLI

March 15, 2022

Sometimes cronjobs are scheduled when a plugin is activated, and that time is not always the preferred time, especially when you’re running a daily event. Using WP-CLI to list cron events Output It’s the wolkloos_check_weather event I was looking for. Unschedule the event Reschedule the event with your own time Output after reschedule Find more […]

Continue Reading

Slow response / Magic keyboard lag on MacOS?

March 3, 2022

Software development is hard with a lagging keyboard. If you’re reading this, you’re probably frustrated already. Well, I was.. Monterey update The advanced options have gone missing since Monterey. Try these terminal commands instead: Remove Bluetooth preferences by removing the preference file (restart required) Kill the Bluetooth service The magic trick Press SHIFT + OPTION, […]

Continue Reading

Using onloadedmetadata to show information from a user uploaded video, before it’s uploaded.

February 11, 2022

It’s always good to give your user a summary of what they’re going to upload, before it’s actually uploaded. I’ll keep this one short, we’re using a file input to allow the user to upload a file. And whenever the element changes, we’ll use javascript to get some information, in this case, the duration of […]

Continue Reading

Re-order options in a select element

February 3, 2022

While working on a feature that allows users to move options from one select element to another I ran into an issue with alphabetic order. Especially when multiple options are being moved at once. To easily solve this I wrote a re-order function that orders both select elements at once. The code’s hosted on Github […]

Continue Reading

Displaying a different value for a field in a Gravity Forms entry

January 26, 2022

We’re selling tickets via Gravity Forms for one of the websites I manage. Events are managed via another plugin and whenever a purchase is made, the event ID is saved in the form entry. Of course, we can’t just display the ID in the backend. We want to see the name of the event, and […]

Continue Reading

Adding and using WP-CLI in a docker-compose setup

January 1, 2022

For most of my WordPress projects I use my own Alcedo WordPress workflow. With some extra scripts, creating a new site is as easy as running ‘create site.c7’in the terminal. This sets up a full WordPress install with local domains and certificates. But, in this case i’m using a different setup in which I use […]

Continue Reading

docker-compose, mysql:5.7 and configuration files.

December 31, 2021

In another blog post, I wrote about solving an issue with io_setup(). The issue was resolved by disabling native AIO in the configuration files. The database service in docker compose This is as minimalist as it gets. We’re using the mysql:5.7 image. The image automatically loads the configuration file in /etc/alternatives/my.cnf allowing us to make […]

Continue Reading

Mysql on Docker: exited with code 0, io_setup() failed EAGAIN

December 31, 2021

I’ve encountered this several times and usually just run the quick fix: Destroy the container and restart with a new one. But, in this case, I really don’t want to go through that trouble, so let’s go ahead and fix this. What does it mean? Some quick research reveals that this has to do with […]

Continue Reading

Export Mailgun logs using the Mailgun API

December 15, 2021

API export mailgun PHP Postman

Sometimes there’s just no other way. You need to gather information about e-mails that were sent, but your application just doesn’t have the logging available. In this case, Mailgun does have the information stored that we need, but how do we extract it? Using the Mailgun API Mailgun doesn’t allow us to export logs/events using […]

Continue Reading
  • « Previous Page
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • 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