All posts by Thomas Maier

Useful Tips To Get Started With WordPress Hooks


Even though hooks in WordPress are amazing and everyone uses them knowingly or unknowingly, I get the impression that some advanced users and especially front-end developers still seem to avoid them. If you feel like you’ve been holding back on hooks, too, then this article will get you started. I am also going to reveal some interesting details to anyone who thinks they are familiar enough with hooks.

Hooks in WordPress

You’ll want to read this article especially if you’d like to: understand code snippets with hooks such as those found in forums, extend WordPress, plugins and themes without breaking updates, learn how to avoid common problems, allow others to extend your code.

The post Useful Tips To Get Started With WordPress Hooks appeared first on Smashing Magazine.

Continue reading:  

Useful Tips To Get Started With WordPress Hooks

Introducing Term Meta Data In WordPress And How To Use Them


WordPress 4.4 introduced term meta data which allows you to save meta values for terms in a similar way to post meta data. This is a highly anticipated and logical addition to the WordPress system.

Introducing Term Meta Data In WordPress And How To Use Them

So far, the post and comment meta systems allowed us to add arbitrary data to posts and comments. This can be used to add ratings to comments, indicate your mood while you were writing a post, attach prices to product posts, and various other information you think is relevant to your content. As of the newest version of WordPress, meta data can now be added to terms which allows us to create features like default category thumbnails in a standardized way. This tutorial will show you how you can edit, update and retrieve these meta data for terms.

The post Introducing Term Meta Data In WordPress And How To Use Them appeared first on Smashing Magazine.

Originally posted here:

Introducing Term Meta Data In WordPress And How To Use Them