Category: Snippets

  • I’m diving into the Gutenberg block editor and it’s a big change! I spent ages trying to find out how to access and grab data from each block using JavaScript. Here is a short snippet, I might have time to expand on this later. First up, let’s access the Gutenberg editor data. We can then […]

  • I’ll show you how to set custom admin sidebar menu positions for WordPress plugins and themes in this post. When you set up your administrator option page it may generally look like the below. Now we just want to set the priority of the admin_menu action, that will determine where your ‘My Options’ page will […]

  • Emmet is super useful for writing code quickly. Unfortunately it’s not support right out of the box when working with Vue files in Atom. Luckily it’s easy to get it up and running!

  • I was recently uploading an update to one of my WordPress Plugins. It was a big update and I had changed the file structure. I ran into an issue where SVN doesn’t delete the old files on WordPress.org. The files aren’t synced sorta speak. So all my old files still remained even though they were […]

  • Easy Digital Downloads sends 4 emails per purchase by default, the Sale Receipts and New User Registration. I wanted to disable the New User Registration emails as they don’t provide any value benefit to me or the customer. Here are few reasons why Keep emails low (I hate unnecessary emails) Everything can be included in […]

  • If you spin up a new WordPress site using the Bitnami installer on Google Compute Engine, then you will see the bitnami banner in the bottom right. The banner links to useful information about your Bitnami install which could be a security issue. I have seen people try to hide it using CSS, DO NOT […]

  • You may have edited some config files for Apache, PHP-FPM, phpMyAdmin or MySQL, and now it’s time to restart for the changes to take affect. For reference, I’m running Bitnami WordPress on Google Cloud Compute Engine.

  • For the optimal and secure WordPress permissions. You can run the following commands by SSH’ing into the linux terminal (I’m using Debian 8 on the Google Compute Engine). We may have to change the Owner and Group of the WP folders, depending on how you’ve uploaded your WordPress site. Let’s fix the ownership and group […]

  • sudo mv target-file.html new-name.html

  • Use the following command to check and renew all installed Let’s Encrypt SSL certificates. You are able to automate the renewal by running the command as a cron job. certbot renew If you do want to renew a specific certifi