So the solution for anyone who is reading is that as Paul said, to use do_action (‘bbpress_init’) within the function that has the bb_ function you are trying to call!! It does not work setting it to the whole file. ( I tried it). It only has to be called once per function.
i have an instance of wordpress which has buddypress plugin. The groups forum is set up. I have the like plugin inside wp-content/plugins/ and i am using the bb_get_topicmeta from within a php file within the like plugin.
How am i meant to be hooked into the action?
im trying to check if there a particular meta_key is set in the topic meta table and then the code adds the topic meta key/value .