Community Page
- dancameron.org Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- So you do look at the silly photos I share on Google Reader.
- I have investigated 1&1 thoroughly and found their major tricks using PayPal. They are crooks and steal money deliberately as their main business. That's why do not be surprised at anything...
- This is the reason I alluded to yesterday for being happy about the iPhone tethering; the more popular it gets, hopefully the more pressure there will be to re-evaluate this insane pricing for...
- Pretty much, and that just might fit into 140 characters.
- So what you are saying is that social net working sites speed the process up in regards to how fast you get to know a person and either like or dislike them?
3 years ago
3 years ago
3 years ago
3 years ago
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.