[wp-hackers] how to append some tag to post automatically, when it is published?
kkarpieszuk at gmail.com
Thu Sep 10 13:17:54 UTC 2009
Sometimes on my blog someone will publish post with Custom field name =
"video" and value = [url to video at YT]
I want that thos post will have added automatically blog tag 'video'
How to do this?
I just know that i need to add action hook for 'publish_post'. but what
should be in function? does wp has some function to add tag to post (i
belive yes, but i don't know which one)?
(en) regards / (pl) pozdrawiam
More information about the wp-hackers