[wp-hackers] Filter Hooks for Enclosures
wphackers at jamietalbot.com
Mon Feb 13 13:01:28 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Dave Grijalva wrote:
> Are there any filter hooks that I can use for the extra fields data?
> Specifically, I want to be able to do some string replacements for an RSS
> Enclosure (podcast). Any ideas?
I added a ticket to Trac requesting the same thing for different elements of feeds this morning - at
the moment these hooks are actions which mean you can't alter anything that's already been added.
Turning them into filters would allow you to do replacements. Plugins that use these hooks would
have to be modified to return the text they are presented with, however.
The ticket's just for the head sections of the feeds, but you could add a note on the need for other
areas of the feeds too. Feeds were heavily discussed here recently, though I'm not sure that any
consensus was formed at the end of it. Are we going to be updating the feeds structure and API
significantly in 2.1? Is it worth the effort to work up a patch that buffers feed text and then
passes it to a filter, or this likely to all change?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the wp-hackers