bp_last_activity( int $user_id )

Output the “active [x days ago]” string for a user.


Description Description

See also See also


Top ↑

Parameters Parameters

$user_id

(Required) See bp_get_last_activity().


Top ↑

Source Source

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

function bp_last_activity( $user_id = 0 ) {

	/**
	 * Filters the 'active [x days ago]' string for a user.
	 *
	 * @since 1.0.0
	 *
	 * @param string $value Formatted 'active [x days ago]' string.
	 */
	echo apply_filters( 'bp_last_activity', bp_get_last_activity( $user_id ) );
}

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.