bp_get_profile_last_updated()

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


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',
				/* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */
				sprintf( __( 'Profile updated %s', 'buddypress' ), bp_core_time_since( strtotime( $last_updated ) ) )
			);
		}

		return false;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.