I don’t think it ever took me so long to fix a permission issue in a WordPress development environment. I checked my docker-compose file. I logged into to the containers to confirm I could write as the web user. It was all good. The issue? There was a database entry that defined a custom path […]
Using ssh-keygen
Need an SSH keygen quickly? Here’s the command for you. Copy this, and add your e-mail address after like this: “email@domain.com” (with quotation marks) Full command: After, you can just hit the “ENTER” key a couple of times, unless you want to set passphrases for your keys. (this is usually only the case for high […]
VS Code: Do you trust the authors of this folder?
Every single time I open a new project VS Code asks me if I trust the authors. It’s kind of annoying, since in 99% of the cases I am the author. Aside from that, it requires me to click a button with my mouse. Disable author check Luckily, it’s possible to disable this author check: […]
VS Code showing errors for functions in WordPress core?
I literally got used to Visual Studio code highlighting function names from WordPress core when working in environments that don’t include the WordPress Core files. Quite disturbing actually – especially when you have code sniffers setup and follow WordPress Coding Standards. Well, today I noticed it again and did some research. Apparently, there’s an easy […]
Importing a database from the command line
Error: Failed to get current SQL modes. Reason: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (13) In the example above, I couldn’t get wp db import (WP CLI) to import a database since a different mysql.sock was used. The solution We can use the mysql command to import the database […]
Setting PHP versions in Deployer deployments
Sometimes your terminal environment (where you SSH into) uses a different PHP version then that you need. Most hosting companies do have several PHP versions available. But how do you use them, and more importantly, how do you set the right one when deploying new versions with Deployer? The errors you can run into In […]
Bulk deleting options in WordPress database
Since I wanted to test how my plugin would function without data, I needed to clear some ACF created options from the database. ACF creates a whole bunch of options using a very similar name, in my case; options_mc_creator_mailchimp_api_key _options_mc_creator_mailchimp_api_key options_mc_creator_mailchimp_server And lots more.. I like using WP CLI for this but WP CLI doesn’t […]
Control Spotify from the command line in Ubuntu
I like automation, I really do. Especially when it comes down to the atmosphere. I moved to an office recently and when I walk in I want things to be in motion; In this specific case I want music to be playing already when I come in. I would love it if the lights and […]
Generate a plugin install link in WordPress
Below you’ll find a function that generates a plugin install link for WordPress. You can use this in the dashboard. This link acts the same way as the “Install plugin” buttons when searching for plugins within WordPress. $url = wp_nonce_url( self_admin_url( ‘update.php?action=install-plugin&plugin={plugin_slug}’ ), ‘install-plugin_{plugin_slug}’ ); Replace {plugin_slug} with the actual plugin slug, like ‘sympose’, ‘akismet’, […]
- « Previous Page
- 1
- …
- 6
- 7
- 8
- 9
- 10
- …
- 12
- Next Page »