[wp-hackers] Pesky "Says:"

scribu scribu at gmail.com
Mon Nov 24 11:26:08 GMT 2008


Thanks!

On Mon, Nov 24, 2008 at 1:06 PM, Benedict Eastaugh <ionfish at gmail.com>wrote:

> > I didn't know that. How do you tell WP to use your class instead of the
> > default?
>
> Just pass it into wp_list_comments like this:
>
> wp_list_comments(array('walker' => new TarskiCommentWalker));
>
> Here's the code in context:
>
> <
> http://github.com/ionfish/tarski/tree/6cefd86cdd98b164529d6959dc69b4e8a1556c30/comments.php
> >
>
> I subclassed Walker_Comment because it's fairly close to what I
> wanted, but you could subclass Walker instead if you want to make more
> radical changes.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>

-- 
http://scribu.net


More information about the wp-hackers mailing list