apply_filters( 'bp_get_the_profile_field_options_checkbox', string $new_html, object $value, int $id, string $selected, string $k )

Filters the HTML output for an individual field options checkbox.

Description

Parameters

$new_html

Label and checkbox input field.

$value

Current option being rendered for.

$id

ID of the field object being rendered.

$selected

Current selected value.

$k

Current index in the foreach loop.

Source

File: bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php

Changelog

Changelog
Version Description
BuddyPress 1.1.0 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.