Marinus Klasen

Marinus Klasen

  • Development
  • Consultancy
  • Developer Resources
  • Blog
  • Contact

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

The URL buildup of Google Analytics pages

August 23, 2022

For a recent project, I wanted to link to external Google Analytics reports. The links of Google Analytics dashboard pages are a bit.. complicated though. Have a look at the example below: I reached out to Google support, but they weren’t able to assist me with this. So I started having a better look, and […]

Continue Reading

Managing menu items and custom pages in Woocommerce My account

August 16, 2022

I wanted to remove the home/dashboard menu item in the Woocommerce my account dashboard and found a great snippet to redirect the visitors from the dashboard to another page upon arrival. This way both the menu item is gone and the page is inaccessible. I found the snippet on Misha Rudrastyh‘s website, in the following […]

Continue Reading

Detecting the user’s global location using javascript

August 16, 2022

A while back I wanted to show/hide a box on my website based on the location of the visitor. There’s a couple of options to get the user location: Use an API which you send the IP address to and get a location back (find services by googling “geolocation ip address api”) Ask for the […]

Continue Reading

Prevent WordPress update nag in custom WordPress plugins and themes using the Update URI header

August 16, 2022

As the WordPress Plugin and Theme repositories are growing the names of custom plugins and themes are running out. What if you create a theme or plugin with a name that’s already used in the WordPress repository? In that case, WordPress will ask you to update it, and that could lead to disastrous events. Since […]

Continue Reading

Mariadb in docker fails to start, keeps restarting

August 12, 2022

Lately I’ve seen errors in my local development environments: This causes my database container to get stuck in a restarting loop. The fix? Downgrade the mariadb version! The database part of docker compose was configured like this: The version used on my system is mariadb 10.8.3, apparently that version can cause issues like this. After […]

Continue Reading

Transfer and copy files between git branches

August 10, 2022

Ever find yourself in a spot where you need to integrate work from another branch into your current branch? Well.. I was surprised to find out it’s much easier than I expected! It’s literally nothing more than the command below Thought I’d share this little snippet with all of you, Happy developing!

Continue Reading

Find the largest tables in your database

August 9, 2022

Here’s an quick and easy SQL query for finding the tables that take most space in your database. Running a WordPress website? Want to run it in WP CLI? Then use it like:

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

Ready to take action?

I'm looking forward to discuss your projects and goals!
Feel free to reach out using the contact details below.

Marinus Klasen

[email protected]
twitter.com/marinusklasen
linkedin.com/in/marinusklasen

  • GitHub
  • LinkedIn
  • Twitter

Have you read?

  • Storing private data with SSH on WPEngine sitesDecember 15, 2022
  • Get the HTML content of a block edit page or post in WordPressNovember 30, 2022
  • Rename Coupon code text to Discount code in WoocommerceNovember 3, 2022
  • Background-size cover in mPDFOctober 22, 2022
  • WordPress.com SSH & duplicating a WordPress.com website locallyOctober 11, 2022

Copyright © 2023 · Marinus Klasen | Webdesign by Team Rood