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

	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.