Posted on August 6, 2013 , Last Modified on: August 6, 2013

Remove Activity Link(Permalink) from Activity time since on Activity Lists


/** * Remove permalink link from time since on activity list */ add_filter( 'bp_activity_permalink', 'bpdev_custom_rtemove_perlink_from_timesince',10,2 ); function bpdev_custom_rtemove_perlink_from_timesince( $time_since, $activity ){ $action = $activity->action ; $time_since = '<span class="time-since">' . bp_core_time_since( $activity->date_recorded ) . '</span>'; $content = sprintf( '%1$s %2$s', $action, $time_since ); return $content; }

You can put the above code in your theme's functions.php or bp-custom.php in plugins directory

#buddypress #activity #bp-hack