bp_activity_add() not working in theme ajax hooks
I am trying to add an activity for the current user through a function hooked to wp_ajax
$args = array(‘action’=>’action string’);
some_function is called through ajax but I get bp_activity_add does not exist. This makes me think that BP hasnt loaded yet, but var_dump($bp) shows the variable is set. So need help to record activity for a user through ajax
You must be logged in to reply to this topic.