BP_XProfile_ProfileData::get_last_updated( int $user_id )

Get time for last XProfile field data update by user.

Description

Parameters

$user_id

(int) (Required) User ID to get time for.

Return

(null|string)

Source

File: bp-xprofile/classes/class-bp-xprofile-profiledata.php

	public static function get_last_updated( $user_id ) {
		global $wpdb;

		$bp = buddypress();

		$last_updated = $wpdb->get_var( $wpdb->prepare( "SELECT last_updated FROM {$bp->profile->table_name_data} WHERE user_id = %d ORDER BY last_updated LIMIT 1", $user_id ) );

		return $last_updated;
	}

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.