CHAPTER 6

image

Customize with Hooks, Shortcodes, and Widgets

Now that you have dealt with the main structural elements of setting up your WordPress theme, you can start to look at ways of adding customizable and dynamic content for your users to control. To do this, you’ll look at three features in WordPress that have been added for these purposes: hooks, shortcodes, and widgets.

You’ve already used a lot of hooks in previous chapters, but here you’ll look more deeply at what they’re actually doing behind the scenes and how to get the best from them. You’ll also take a look at shortcodes and how they allow users to add dynamic content through the ...

Get Pro WordPress Theme Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.