change URL to bp_core_get_user_domain
This commit is contained in:
parent
e535b9c8cf
commit
180f11d647
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ class Buddypress {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function add_user_metadata( $object, $author_id ) {
|
public static function add_user_metadata( $object, $author_id ) {
|
||||||
|
$object->url = bp_core_get_user_domain( $author_id ); //add BP member profile URL as user URL
|
||||||
|
|
||||||
// add BuddyPress' cover_image instead of WordPress' header_image
|
// add BuddyPress' cover_image instead of WordPress' header_image
|
||||||
$cover_image_url = bp_attachments_get_attachment( 'url', array( 'item_id' => $author_id ) );
|
$cover_image_url = bp_attachments_get_attachment( 'url', array( 'item_id' => $author_id ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue