bbp_get_user_last_posted( int $user_id )
Return the raw value of teh last posted time.
Description
Parameters
- $user_id
-
(Required) User ID to retrieve value for
Return
(mixed) False if no user, time() format if exists
Source
File: bp-forums/users/options.php
function bbp_get_user_last_posted( $user_id = 0 ) { // Validate user id $user_id = bbp_get_user_id( $user_id ); if ( empty( $user_id ) ) return false; $time = get_user_option( '_bbp_last_posted', $user_id ); return apply_filters( 'bbp_get_user_last_posted', $time, $user_id ); }
Changelog
Version | Description |
---|---|
bbPress (r3910) | 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.