[buddypress-trac] [BuddyPress Trac] #7244: Add functions bp_get_group_avatar_url() and bp_get_group_cover_url()
buddypress-trac
noreply at wordpress.org
Sat Sep 3 10:26:30 UTC 2016
#7244: Add functions bp_get_group_avatar_url() and bp_get_group_cover_url()
-----------------------------+-----------------------------
Reporter: mifr45 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Groups | Version: 2.6.3
Severity: normal | Keywords:
-----------------------------+-----------------------------
'''Function bp_get_group_avatar_url()'''
{{{#!php
<?php
function bp_get_group_avatar_url($group_id = null){
if(!$group_id){
$group_id = bp_get_group_id();
}
return bp_core_fetch_avatar(array('object' =>
'group','item_id' => $group_id,'html'=>false));
}
?>
}}}
'''Function bp_get_group_cover_url()'''
{{{#!php
<?php
function bp_get_group_cover_url($group_id = null){
if(!$group_id){
$group_id = bp_get_group_id();
}
return bp_attachments_get_attachment('url',
array('object_dir' => 'groups','item_id' => $group_id));
}
?>
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7244>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list