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

(string) HTML being used for the button.

$this

(BP_Button) Current BP_Button instance.

$before

(string) HTML appended before the actual button.

$after

(string) HTML appended after the actual button.

$r

(array) Parsed button arguments.

Source

File: bp-core/classes/class-bp-button.php

Changelog

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.