Grabbing the tag_id or topic_id with add_action
- 
		Hello bbpress community. I’m trying to write a plugin that checks certain actions and saves them to a “status feed” so they appear in a friendfeeed-ish manner. eg. User made a new post User started a topic User tagged a topic etc. bb_new_post and bb_new_topic return the post and topic id respectively so it’s easy to grab it… But I’m using add_action('bb_add_topic_tags', 'status_tags_update');to check the tags. The thing is, it seems to break tagging.I checked bb_add_topic_tags and it returns tt_ids, which I assumed was an array of the inserted tag ids. But I’m probably wrong. I don’t understand very well what $tt_ids = $wp_taxonomy_object->set_object_terms( $topic->topic_id, $tags, 'bb_topic_tag', array( 'append' => true, 'user_id' => $user_id ) );is supposed to do. So I don’t understand what’s being returned. I’m trying to get either the tag id, or preferably the topic id.Any of you plugin-savvy users have any idea/help? 
- You must be logged in to reply to this topic.
