bp_ps_full_label( $f )
Filter BuddyBoss profile search field label.
Description
Source
File: bp-core/profile-search/bps-templates47.php
function bp_ps_full_label( $f ) {
$labels = array(
'contains' => __( '<strong>%1$s</strong><span></span>', 'buddyboss' ),
'' => __( '<strong>%1$s</strong><span> is:<span>', 'buddyboss' ),
'like' => __( '<strong>%1$s</strong><span> is like:<span>', 'buddyboss' ),
'range' => __( '<strong>%1$s</strong><span> range:<span>', 'buddyboss' ),
'date_range' => __( '<strong>%1$s</strong><span> range:<span>', 'buddyboss' ),
'distance' => __( '<strong>%1$s</strong><span> is within:<span>', 'buddyboss' ),
'one_of' => __( '<strong>%1$s</strong><span> is one of:<span>', 'buddyboss' ),
'match_any' => __( '<strong>%1$s</strong><span> match any:<span>', 'buddyboss' ),
'match_all' => __( '<strong>%1$s</strong><span> match all:<span>', 'buddyboss' ),
'unknown' => __( '<strong>%1$s</strong>:', 'buddyboss' ),
);
$mode = isset ( $labels[ $f->mode ] ) ? $f->mode : 'unknown';
$label = sprintf( $labels[ $mode ], $f->label );
return apply_filters( 'bp_ps_full_label', $label, $f );
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.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.