How to Add Block Templates to Your WordPress Theme or Plugin

How to Add Block Templates to Your WordPress Theme or Plugin Gutenberg

While working on my Gutenberg Development Course, one of the hardest things I found to research was how to add block templates to your WordPress theme or plugin. Block templates are a way to have certain blocks show up by default for a new post, page or custom post type.  You can also "lock" the template to … Continue reading How to Add Block Templates to Your WordPress Theme or Plugin

Slides for WordCamp Baltimore – Learning PHP for WordPress Development

I'm very excited to be back at a WordCamp in Baltimore, a town I love.  Today I am speaking on PHP for WordPress, a topic near and dear to my heart since I learned PHP via WordPress and, as a teacher, guide others on this path as well. https://speakerdeck.com/zgordon/php-for-wordpress After you check out the slide … Continue reading Slides for WordCamp Baltimore – Learning PHP for WordPress Development

The woocommerce-hooks.php file is where it’s at for WooCommerce Templating

EDIT: This file has been moved to woocommerce/includes/wc-template-hooks.php Fully customizing WooCommerce did not make sense to me until I finally tracked down this file: /wp-content/plugins/woocommerce/woocommerce-hooks.php. This file lists all of the hooks and all of the actions that are added to the hooks. So, if you've ever tried searching through the rather abstracted template files … Continue reading The woocommerce-hooks.php file is where it’s at for WooCommerce Templating