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 Description

This filter is a dynamic filter based on component and component ID and allows button to be manipulated externally.


Top ↑

Parameters 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 Source

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

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Added $r as a parameter.
1.2.6 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.