Code Snippets
Copy-paste solutions to save time (and sanity) in your projects.
If you’ve ever wanted a quick code fix, a clever trick, or a better way to solve a recurring dev problem—you’re in the right place. These are small, reusable bits of code and insight that I use myself (and share with you) to speed up dev work and avoid reinventing the wheel. If any of this code helped you, or you have any questions on implementation, please don’t hesitate to reach out.
Adds SoftwareSourceCode schema to Snippet posts, automatically including the code, language, and keywords for improved SEO and search visibility.
Boost your site speed by preloading the first homepage image, ensuring faster hero loading and improved Core Web Vitals performance.
This snippet enhances the WordPress Multisite network by introducing a dedicated notes column in the Sites table within the Network Admin dashboard.
Increase user engagement by showcasing a unique post each day on your WordPress site. This PHP snippet ensures that visitors see a different post daily, refreshing at midnight.
This snippet for WordPress Multisite adds custom search functionality that allows administrators to search for products by their SKU across the entire network.
This snippet makes direct links to admin pages for sites in your network. It is great for doing repetitive tasks (such as downloading WooCommerce reports).
This code enhances the WordPress Multisite Network Admin dashboard by adding a new column to the Sites table that shows the date of the most recent WooCommerce order.
Code snippet that adds custom social fields (IMDB, GitHub, WordPress, etc.) to user profiles and include them in Yoast SEO schema output.