khadlock
Member
Posted 2 years ago #
I've created a custom post type using cms press and I need to run some custom code in the "publish_post" hook for this post type, but it doesn't seem to ever get called. Anyone have any idea why?
Strange thing is that "save_post" works, but that's not quite what I'm looking for.
http://wordpress.org/extend/plugins/cms-press/
prettyboymp
Member
Plugin Author
Posted 2 years ago #
The 'publish_post' action is post type specific. So if you have a custom post type, you need to change the hook you use. IE, if your post type is 'foobar', the hook you should use is 'publish_foobar'.
khadlock
Member
Posted 2 years ago #
Perfect, that makes sense, thanks!
seyed110011
Member
Posted 2 years ago #
Thanks for developing this plugin - it has been awesome, but Im having trouble with SEO ... Google and native search -both are not picking up the new posts... can you please help !
Could a hook change help?
THANKS SO MUCH ...
Details: here