Skip to content

Commit 180f11d

Browse files
committed
change URL to bp_core_get_user_domain
1 parent e535b9c commit 180f11d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

integration/class-buddypress.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ public static function init() {
77
}
88

99
public static function add_user_metadata( $object, $author_id ) {
10+
$object->url = bp_core_get_user_domain( $author_id ); //add BP member profile URL as user URL
11+
1012
// add BuddyPress' cover_image instead of WordPress' header_image
1113
$cover_image_url = bp_attachments_get_attachment( 'url', array( 'item_id' => $author_id ) );
1214

0 commit comments

Comments
 (0)