bp_xprofile_format_activity_action_updated_profile( string $action, object $activity )
Format ‘updated_profile’ activity actions.
Description Description
Parameters Parameters
- $action
-
(Required) Static activity action.
- $activity
-
(Required) Activity object.
Return Return
(string)
Source Source
File: bp-xprofile/bp-xprofile-activity.php
function bp_xprofile_format_activity_action_updated_profile( $action, $activity ) { // Note for translators: The natural phrasing in English, "Joe updated // his profile", requires that we know Joe's gender, which we don't. If // your language doesn't have this restriction, feel free to use a more // natural translation. $profile_link = trailingslashit( bp_core_get_user_domain( $activity->user_id ) . bp_get_profile_slug() ); $action = sprintf( esc_html__( "%s's profile was updated", 'buddypress' ), '<a href="' . esc_url( $profile_link ) . '">' . bp_core_get_user_displayname( $activity->user_id ) . '</a>' ); /** * Filters the formatted 'updated_profile' activity stream action. * * @since 2.0.0 * * @param string $action Formatted action for activity stream. * @param object $activity Activity object. */ return apply_filters( 'bp_xprofile_format_activity_action_updated_profile', $action, $activity ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |