bp_get_profile_last_updated()
Return a formatted string displaying when a profile was last updated.
Description Description
Return Return
(bool|string)
Source Source
File: bp-xprofile/bp-xprofile-template.php
function bp_get_profile_last_updated() { $last_updated = bp_get_user_meta( bp_displayed_user_id(), 'profile_last_updated', true ); if ( ! empty( $last_updated ) ) { /** * Filters the formatted string used to display when a profile was last updated. * * @since 1.0.0 * * @param string $value Formatted last updated indicator string. */ return apply_filters( 'bp_get_profile_last_updated', sprintf( __( 'Profile updated %s', 'buddypress' ), bp_core_time_since( strtotime( $last_updated ) ) ) ); } return false; }
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |