Tag Archives: Hooks

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.

After you check out the slide notes, please check out the Trailer for my PHP for WordPress Course from Treehouse.

Speaking Announcement – WordCamp Philly 2015

WordCamp Philly Banner

I have taken off a number of months in 2015 from speaking at WordCamps, but I’m excited to announce that I’ll be speaking at WordCamp Philly (June 13-14).

My talk will be about WordPress hooks, actions and filters.  This is something I tried to talk on last year, but have learned a lot more in how to present this content since then and am excited for a much smoother and comprehensive talk with a sexy slide deck to boot 🙂

Hardcode a Ninja Form in Your WordPress Theme


I have been a big Gravity Forms supporter for a long time, however, I’m beginning to get more interested in Ninja Forms, which is a free WordPress form builder and also quite powerful.

If you decide to build your WP forms with Ninja Forms, you may find the ninja_forms_display_form() function helpful since it let’s you hardcode a form directly into a template.

Most of the time I add my forms as shortcodes, but on occassion it’s necessary to hardcode in the form to the theme files itself. Here’s the full documentation for the ninja_forms_display_form hook.

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 and not be able to find what you’re looking for to customize, check out the woocommerce-hooks.php file.

I didn’t find any direct mention of this file in the docs, so hopefully the 2.0 WooCommerce docs will have this file at least mentioned as the place to go to see the default loading of actions.

Have to say though, that once found, everything was super clear to figure out, so big thanks to the dev team for clean coding!