Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 13 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

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

Download all attachments as: .zip

Change History (5)

@sboisvert
13 years ago

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

#1 @DJPaul
13 years ago

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

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

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

Note: See TracTickets for help on using tickets.