Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3975 closed enhancement (fixed)

add filtering of message to bp_group_status_message()

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

Download all attachments as: .zip

Change History (5)

@sboisvert
8 years ago

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

#1 @DJPaul
8 years ago

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

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

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

Note: See TracTickets for help on using tickets.