rtmedia_buddypress_action_text_fitler

Description

Change text displayed when the user adds a new media.

Example

Change user display name to username on media added text.

/**
 * Change activity update text when new media added.
 * 
 * @param $action       Text to update.
 * @param $username     Username.
 * @param $count        Media count.
 * @param $display_name User display name.
 * @param $media_type   Media type.
 * @return string       Updated text.
 */
function rtm_change_new_media_added_text( $action, $username, $count, $display_name, $media_type ) {
   $action = $username . ' added a new ' . ucfirst( $media_type );
   return $action;
}
add_filter( 'rtmedia_buddypress_action_text_fitler', 'rtm_change_new_media_added_text', 10, 5 );