Add reply programatically
I’ve created a custom module for bbpress to combine all new topics and replies in one overview. From there the moderator can comment on all the incoming messages. This works only i’ve one problem. To add a new reply i use the next code:
reply_data = array('post_parent'=>$post_parent, 'post_content' => $post_content); $reply_meta = array('forum_id'=>$post_forum_id, 'topic_id' => $post_topic_id); bbp_insert_reply($reply_data,$reply_meta);
When this is a reply on an other reply everything works fine. But when it is a reply on a new topic then the Topic starter ip-adres is changed to the ip-address of the moderator. I can turn some things off in the core function includes/topics/functions.php
// Update poster IP if not editing update_post_meta( $topic_id, '_bbp_author_ip', bbp_current_author_ip(), false );
But that isn’t what I prefer of course.
Could someone help me out?
Thanks in advance.
- You must be logged in to reply to this topic.