Hi
I want to fetch the url of the image attached to a BuddyPress activity programmatically. Would you please guide me in the right direction?
Currently, I am trying to fetch activity details in “wp_head” action as following:
if (bp_is_current_component(‘activity’) ) {
$activity_id = $bp->current_action;
if ($activity_id) {
$get_act = bp_activity_get(array(‘in’=>$activity_id));
}
}
Thanks in advance.