[buddypress-trac] [BuddyPress Trac] #7657: Feature request : additional parameter in '_cover_image_uploaded' action

buddypress-trac noreply at wordpress.org
Mon Jan 15 22:31:48 UTC 2018


#7657: Feature request : additional parameter in '_cover_image_uploaded' action
-------------------------+-----------------------------
 Reporter:  pscolv       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:  2.9.2
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Hi,

 I'm trying to generate thumbnails of the cover image, and I found a
 dynamic hook that could have allowed me achieving that (in bp-core-
 attachments.php) :
 do_action( $object_data['component'] . '_cover_image_uploaded', (int)
 $bp_params['item_id'] );

 However, when in my callback function, I'm unable to do anything, since
 the only parameter in my possession is the item_id, and in particular I'm
 missing the cover image url.

 Suggested change : add parameters to the action, which are available "for
 free" since they are already computed and about to be sent back to java :
 $name, $cover_url, $feedback_code

 This way the '_cover_image_uploaded' hook allows much more possibilities
 as of today !

 Regards,

 Pascal.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7657>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list