For the record, I fixed this. I found that add_action was actually being triggered with publish_post and the problem was using other functions outside the wordpress loop that were not getting the data they were supposed to get.
Thanks.
Here’s additional info regarding this problem:
– Template uses wp_insert_post($post) to publish each new post.
– The plugin I created uses add_action(‘publish_post’,’function_name’) as hook.
– Plugin should work each time a new post is published from the template, but it’s not working. Though, if I publish a new post from the admin, it works.
– I also tested add_action(‘wp_insert_post’,’function_name’) with the same result.
Any other action hook I should try to make the plugin work?
Thanks
Hi, thank you for replying. Yes, when using publish_post I tried also posting from the template, that is outside the admin and plugin isn’t triggered.