bp_get_album_author()
Return the album author name.
Description
Return
(int) The album author name.
Source
File: bp-media/bp-media-template.php
1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 | function bp_get_album_author() { global $media_album_template ; if ( isset( $media_album_template ) && isset( $media_album_template ->album ) && isset( $media_album_template ->album->user_id ) ) { $author = bp_core_get_user_displayname( $media_album_template ->album->user_id ); } /** * Filters the album author name being displayed. * * @since BuddyBoss 1.5.3 * * @param int $id The album author id. */ return apply_filters( 'bp_get_album_author' , $author ); } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.5.3 | 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.