Getting a handle on hooks

Hooks are part of the plugin API and are mostly used by plugin developers to access and manipulate WordPress CMS data, then serve it up, for any theme to use. Your theme does need some preparation in order to work with most plugins. The most important hook we'll work with is the wp_head hook. This allows plugins to activate and write information in your WordPress theme's header files, such as CSS links to any special CSS the plugin might need or JavaScript files the plugin might use to enhance your site. We'll take a look at a few other hooks that will enhance our theme and make sure it's plugin-ready.

We're now ready to start adding WordPress theme code.

Newbies Guide To Online Hobby Profits

Newbies Guide To Online Hobby Profits

Many people are passionate about their hobbies. They make time in their lives for them, spend lot of money on them, and even sometimes move their homes, families and jobs just to be closer to their hobbies. But even if you just enjoy your hobby and perhaps wouldn't class yourself as a fanatic, wouldn't it be great if you could earn money online possibly even a full-time income, from simply telling others people about your passion?

Get My Free Ebook


Post a comment