bbp_get_user_last_posted

Return the raw value of teh last posted time.

Description

bbp_get_user_last_posted( (int) $user_id = 0 ); 

Parameters (1)

0. $user_id — Optional. (int)
User ID to retrieve value for

Usage

  1. if ( !function_exists( 'bbp_get_user_last_posted' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/options.php'; 
  3.  
  4. // User ID to retrieve value for 
  5. $user_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_get_user_last_posted($user_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/users/options.php  
  1. function bbp_get_user_last_posted( $user_id = 0 ) { 
  2.  
  3. // Validate user id 
  4. $user_id = bbp_get_user_id( $user_id ); 
  5. if ( empty( $user_id ) ) 
  6. return false; 
  7.  
  8. $time = get_user_option( '_bbp_last_posted', $user_id ); 
  9.  
  10. return apply_filters( 'bbp_get_user_last_posted', $time, $user_id );