function bp_profile_last_updated() { global $bp; $last_updated = bp_get_profile_last_updated(); if (!$last_updated) { _e('Profile not recently updated', 'buddypress') . '.'; } else { echo $last_updated; } }
/** * Render a formatted string displaying when a profile was last updated. * * @since 1.0.0 */ function bp_profile_last_updated() { $last_updated = bp_get_profile_last_updated(); if (empty($last_updated)) { _e('Profile not recently updated.', 'buddypress'); } else { echo $last_updated; } }