bbp_update_user_reply_count( int $user_id, mixed $count = false )
Update the reply count for a user
Description Description
Parameters Parameters
- $user_id
-
(Required)
- $count
-
(Optional)
Default value: false
Return Return
(boolean)
Source Source
File: includes/users/options.php
function bbp_update_user_reply_count( $user_id = 0, $count = false ) { // Validate user id $user_id = bbp_get_user_id( $user_id ); if ( empty( $user_id ) ) { return false; } // Just in time filtering of the user's reply count $count = apply_filters( 'bbp_update_user_reply_count', $count, $user_id ); // Bail if no count was passed if ( false === $count ) { return false; } // Return the updated user option return update_user_option( $user_id, '_bbp_reply_count', $count ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |