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.

Creating And Writing Your Blog

Creating And Writing Your Blog

The success of a blog lies in the content. It is the content and the key words that consistently attract potential customers. Great blog content literally means something different on every blog. Great blog content is researched and not impulsive. You cannot treat the blog as an experimental playground and expect it to work for you. It is designed to mean business and make you presence felt online and you have to ensure it performs the way you want it to.

Get My Free Ebook


Post a comment