bbp_get_reply_author_url( int $reply_id )
Return the author url of the reply
Description
Parameters
- $reply_id
-
(Optional) Reply id
Return
(string) Author URL of the reply
Source
File: bp-forums/replies/template.php
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 | function bbp_get_reply_author_url( $reply_id = 0 ) { $reply_id = bbp_get_reply_id( $reply_id ); // Check for anonymous user or non-existant user if ( !bbp_is_reply_anonymous( $reply_id ) && bbp_user_has_profile( bbp_get_reply_author_id( $reply_id ) ) ) { $author_url = bbp_get_user_profile_url( bbp_get_reply_author_id( $reply_id ) ); } else { $author_url = get_post_meta( $reply_id , '_bbp_anonymous_website' , true ); if ( empty ( $author_url ) ) { $author_url = '' ; } } return apply_filters( 'bbp_get_reply_author_url' , $author_url , $reply_id ); } |
Changelog
Version | Description |
---|---|
bbPress (r2667) | 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.