Category: Uncategorized

  • Git Submodule Small Cheatsheet

    I’m in the process of seeing if using Git Submodules can help simplify my workflow when it comes to building freemium WordPress plugins. This serves as a small cheat sheet to help me remember some important submodule specific commands. Clone a repository with nested submodules Clone a repository and automatically include all submodules using –recursiveYou […]

  • Gutenberg has been growing on me and I’m using it for most sites now. I’ve finally decided to jump into the space, but there are already a lot of third-party block plugins. Instead I’ve been developing a plugin that restricts content from all exisiting blocks using various conditions. Naturally this gives the plugin the name […]

  • 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 […]

  • This snippet allows you to get the WordPress feature image and use it as a background. Style it using the css class feature-bg. Remember to put the code around your content in your WordPress Template files. The code will dynamically take the feature image thumbnail if the current post has one.

  • Sometimes we want to display dynamic content based on where the visitor has come from. The place where the vistor link your website link from is called a “Referer”, so when someone clicks your link on Google, then Google is the referer. Using PHP we can target users coming from Google, we can then show […]

  • The sticky payment section in the Storefront Theme can be a little buggy. Sometimes it’s best to remove it.Here is how to make WooCommerce payment section non sticky. Just drop the code into your child themes functions.php