Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3975 closed enhancement (fixed)

add filtering of message to bp_group_status_message()

Reported by: sboisvert Owned by: DJPaul
Priority: normal Milestone: 1.6
Component: Groups Version: 1.5.3
Severity: trivial Keywords: has-patch
Cc: sboisvert

Description

This small patch adds the ability to filter the message that is displayed by bp_group_status_message()

echo apply_filters('bp_group_status_message',$message,$group,$status,$bp_group_has_requested_membership, $is_user_logged_in);

Attachments (1)

bp-groups-template.php.patch​ (1.8 KB ) - added by sboisvert 15 years ago.
C:\Users\sboisvert\Documents\NuSphere PhpED\Projects\wordpressPEER1\wp-content\

Download all attachments as: .zip

Change History (5)

@sboisvert
15 years ago

C:\Users\sboisvert\Documents\NuSphere PhpED\Projects\wordpressPEER1\wp-content\

#1 @DJPaul
15 years ago

  • Milestone Awaiting Review → 1.6
  • Owner set to DJPaul
  • Status new → assigned

#2 @DJPaul
15 years ago

I added some phpdoc and tweaked your patch a little, sboisvert -- the filter didn't need all those arguments passed to it, as the callback function could just get those itself.

#3 @djpaul
15 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [5673]) Add filter to bp_group_statusmessage. Fixes #3975, props sboisvert for initial patch.

#4 @sboisvert
15 years ago

Thank you, I'll try to keep that methodology in mind for next time.

Note: See TracTickets for help on using tickets.