I have written a bit of code which updates the content on one of my pages at a regular given interval. I want to modify this so that it also creates and publishes a new post at the same time. I added the following lines of code insert a new post and update the post meta information.
$new_post_id=wp_insert_post( $my_post ); add_post_meta($new_post_id, 'aktt_notify_twitter', 'yes'); add_post_meta($new_post_id, 'wpbook_fb_publish', 'yes');
I populate $my_post with the post title, status, author, etc.
Will this code trigger my twitter tools and wpbook plugins so that the post is also posted to fb and tweeted? Or do I have to do something with a hook and an action?