Member::update_user_last_activity_random( int $user_id )

Update the last user activity with a random date.


Parameters Parameters

$user_id

(int) (Required) User ID.


Source Source

File: cli/src/member.php

	public static function update_user_last_activity_random( $user_id ) {
		bp_update_user_last_activity(
			$user_id,
			gmdate( 'Y-m-d H:i:s', wp_rand( 0, time() ) )
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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