apply_filters( "bp_button_{$this->component}_", string $contents , BP_Button $this , string $before , string $after , array $r )
Filters the button based on class parameters.
Description
This filter is a dynamic filter based on component and component ID and allows button to be manipulated externally.
Parameters
- $contents
-
HTML being used for the button.
- $this
-
Current BP_Button instance.
- $before
-
HTML appended before the actual button.
- $after
-
HTML appended after the actual button.
- $r
-
Parsed button arguments.
Source
Changelog
Version | Description |
---|---|
BuddyPress 2.7.0 Added $r as a parameter. | BuddyPress 2.7.0 Added $r as a parameter. |
BuddyPress 1.2.6 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.