-
Website
http://dancameron.org/ -
Original page
http://dancameron.org/general/post-title-in-rss-comment-feed-plugin -
Subscribe
All Comments -
Community
-
Top Commenters
-
LillyLipscomb
1 comment · 1 points
-
paynito
1 comment · 1 points
-
stevehahn
8 comments · 1 points
-
futurelevel
2 comments · 1 points
-
Jason Hansen
4 comments · 2 points
-
-
Popular Threads
-
Splitting Content into Two Columns, e.g. Word Wrap with PHP or CSS + Javascript
2 weeks ago · 11 comments
-
Display a loading image until the page completes loading
3 days ago · 1 comment
-
Go Dodgers!
3 weeks ago · 1 comment
-
Splitting Content into Two Columns, e.g. Word Wrap with PHP or CSS + Javascript
As for echo vs. return, it is kind of a matter of preference - the WP code itself uses both, kind of randomly. The difference is yours will always output when the code is run, whereas mine returns the string to the calling function, which in this case is the filter method for 'comment_author_rss', which is programed to add anything your filter method returns. Yours will work because even though it's not returning everything, it is echoing (outputting to the browser) as it processes.
The advantage to doing return instead of echo is that if you want to use that method for something else (just to get the value, not write it) you could just reuse that method without making a new one.