Editing items displayed by bp_activity_action()
-
I want to add some html tags around the avatar on the code below:
`
James
and
<img class="avatar user-2-avatar" width="20" height="20" title="polokina" alt="Profile picture of
polokina” src=”http://www.mysite.com/wp-content/uploads/avatars/2/0f7d3194d013635b44da43ad2b13e420-bpthumb.jpg”>
polokina
are now friends
3 days, 20 hours ago
`
I found out that the above code(sans the “div”) is displayed by bp_activity_action(). in activity/entry.php. And that function, which is defined in bp_activity/bp_activity_template.php, merely echoes another function
`function bp_activity_action() {
echo bp_get_activity_action();
}`and bp_get_activity_action() is defined as follows:
`function bp_get_activity_action() {
global $activities_template;$action = $activities_template->activity->action;
$action = apply_filters_ref_array( ‘bp_get_activity_action_pre_meta’, array( $action, &$activities_template->activity ) );if ( !empty( $action ) )
$action = bp_insert_activity_meta( $action );return apply_filters_ref_array( ‘bp_get_activity_action’, array( $action, &$activities_template->activity ) );
}`And that was sort of dead end for me. Could somebody please give me a tip as to where I can edit the aforementioned html? Thanks in advance to all you good folks
- The topic ‘Editing items displayed by bp_activity_action()’ is closed to new replies.