Like the blog? Get the book »

Posts tagged: hooks

Archive page 1 of 1
Precision Targeting with Custom Action Hooks

Precision Targeting with Custom Action Hooks

WordPress’ powerful action-hook system makes it possible to insert functionality at any point in your theme. Most WordPress themes include some of the built-in WordPress hooks by default. For example, most of us are aware of the two most common WordPress hooks: wp_head() and wp_footer(), which generally appear in the theme’s header and footer sections. These two hooks provide WordPress a location at which to execute various scripts and functions. For example, the wp_head() hook is where WordPress generates a variety of <link /> and <script></script> elements, among other things.

© 2009–2024 Digging Into WordPress Powered by WordPress Monzilla Media shapeSpace