How to detect that I'm producing content for the RSS output?
Posted: Tue Dec 20, 2011 12:33 pm
A plugin of mine changes the article content using the "frontend_display" hook.
I would like to produce some other output, if the content is produced for any RSS. Is there a simple way to detect it?
Do I have to check the GET for having "rss.php"? That would be uncool, if some blog changed this name for any reason. Is there a better way (by checking some field in the eventData i.e.)?
Thanks.
I would like to produce some other output, if the content is produced for any RSS. Is there a simple way to detect it?
Do I have to check the GET for having "rss.php"? That would be uncool, if some blog changed this name for any reason. Is there a better way (by checking some field in the eventData i.e.)?
Thanks.