Skip to:

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#3975 closed enhancement (fixed)

add filtering of message to bp_group_status_message()

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


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 12 years ago.
C:\Users\sboisvert\Documents\NuSphere PhpED\Projects\wordpressPEER1\wp-content\

Download all attachments as: .zip

Change History (5)

12 years ago

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

#1 @DJPaul
12 years ago

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

#2 @DJPaul
12 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
12 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

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

#4 @sboisvert
12 years ago

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

Note: See TracTickets for help on using tickets.