bp_get_profile_last_updated()

Return a formatted string displaying when a profile was last updated.

Description

Return

(bool|string)

Source

File: bp-xprofile/bp-xprofile-template.php

1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
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 BuddyPress 1.0.0
         *
         * @param string $value Formatted last updated indicator string.
         */
        return apply_filters( 'bp_get_profile_last_updated', sprintf( __( 'Profile updated %s', 'buddyboss' ), bp_core_time_since( strtotime( $last_updated ) ) ) );
    }
 
    return false;
}

Changelog

Changelog
Version Description
BuddyPress 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.