[buddypress-trac] [BuddyPress Trac] #7126: [BP Nouveau Request] create functions to get the component's button args
buddypress-trac
noreply at wordpress.org
Tue Sep 6 17:34:15 UTC 2016
#7126: [BP Nouveau Request] create functions to get the component's button args
--------------------------------+-----------------------
Reporter: imath | Owner: imath
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.7
Component: Core | Version: 1.2
Severity: normal | Resolution:
Keywords: 2nd-opinion commit |
--------------------------------+-----------------------
Comment (by r-a-y):
@hnla - If you're
[https://buddypress.trac.wordpress.org/attachment/ticket/7226/7226.ray.03.patch
using the patch in #7226], can't you use the fifth parameter of the
filter?
`$this->contents = apply_filters( 'bp_button_' . $this->component . '_' .
$this->id, $this->contents, $this, $before, $after, $r );`
The `$r` parameter should include all button arguments.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7126#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list