[wp-hackers] Custom list of posts per user

Otto otto at ottodestruct.com
Wed Sep 15 11:03:02 UTC 2010


On Wed, Sep 15, 2010 at 6:00 AM, Otto <otto at ottodestruct.com> wrote:
> The custom taxonomy idea he had is basically how bbPress implements
> email subscriptions. It has a bb_subscribe taxonomy hooked to the
> bb_user table. The objects are user id's, the terms are topic-X where
> X is the id number of the topic. So when somebody subscribes to a
> topic, the code calls set_object_terms to add that term to the user
> object. When a new post is made, all the objects with that term are
> pulled out and the id's are the id's of the users subscribed to the
> topic.

Oh, FYI, the tag subscriptions I just added to wp.org are implemented
the same way. It just uses tag-slug as the term instead. Same
taxonomy.

-Otto


More information about the wp-hackers mailing list