[wp-hackers] Filtering pingbacks and trackbacks
Peter Westwood
peter.westwood at ftwr.co.uk
Wed Aug 2 21:43:30 GMT 2006
Kimmo Suominen wrote:
> Hi!
>
> It looks like there are no filters for the contents of the outgoing
> pingbacks and trackbacks. Have I just not looked in the right place?
>
There are no filters for trackbacks apart from the default content and
excerpt ones which won't really help.
> I'd like to be able to convert the contents of outgoing pingbacks and
> trackbacks to UTF-8 using iconv().
>
> I can already do the necessary charset conversion for incoming pingbacks
> and trackbacks using the preprocess_comment filter. (I need to look at
> comment_type to avoid running iconv() on comments entered on the site
> itself, which must not be converted.)
>
You can't do this for pingbacks.
The ping'd site is what creates the excerpt that is shown not your site.
It works like this (taken from [1]):
1. Alice posts to her blog. The post she's made includes a link to a
post on Bob's blog.
2. Alice's blogging system contacts Bob's blogging system and says
"look, Alice made a post which linked to one of your posts".
3. Bob's blogging system then includes a link back to Alice's post on
his original post.
4. Reader's of Bob's article can follow this link to Alice's post to
read her opinion.
westi
[1] http://www.hixie.ch/specs/pingback/pingback
--
Peter Westwood
http://blog.ftwr.co.uk
More information about the wp-hackers
mailing list