I currently have WordPress build an
XML Sitemap everytime a
PUBLISHED by using this Action...
I am not doing the same process but for a
News Sitemap which has different criteria. Such as it can only show post that are no older then 48 hours.
I have my code working but I would like to optimize it slightly.
add_action("publish_post", "create_news_sitemap"); is ran, I would like to ONLY run a function is it is a Custom Post Type named
news that is Publishing a post.
Is this something that is possible?
publish_post action is ran, can I detect which POST_TYPE is setting it into action?