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!
WordPress Plugin: Copy Code from Block Editor Code Block
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/
Set a static IP for docker-compose containers
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 […]
Justified auto width and height in Media Carousel Widget in Elementor
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 […]
Using the WordPress REST API
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 […]
Remove all edit post links in WordPress with a simple 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 […]
Registering block styles in WordPress with PHP
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 […]
Host key verification failed when connecting over SSH?
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.
Run VS Code server (Remote SSH) on Alpine
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 […]
- « Previous Page
- 1
- …
- 3
- 4
- 5
- 6
- 7
- …
- 12
- Next Page »