Description
Change text displayed when theĀ user adds multiple media.
Example
Change user display name to username on media added text.
/**
* Change activity update text when multiple media added.
*
* @param $action Text to update.
* @param $username Username.
* @param $count Media count.
* @param $display_name User display name.
* @return string Updated text.
*/
function rtm_change_multiple_media_added_text( $action, $username, $count, $display_name ) {
$action = $username . ' added ' . $count . ' ' . RTMEDIA_MEDIA_SLUG;
return $action;
}
add_filter( 'rtmedia_buddypress_action_text_fitler_multiple_media', 'rtm_change_multiple_media_added_text', 10, 4 );