bp_get_the_profile_field_required_label

The BuddyPress bp get the profile field required label hook.

Description

apply_filters( 'bp_get_the_profile_field_required_label', (unknown) $translated_string, (unknown) $bp_get_the_profile_field_id ); 

Parameters (2)

0. $translated_string (unknown)
The translated string.
1. $bp_get_the_profile_field_id (unknown) => bp_get_the_profile_field_id()
The bp get the profile field id.

Usage

To run the hook, copy the example below.
  1. $translated_string = apply_filters( 'bp_get_the_profile_field_required_label', $translated_string, $bp_get_the_profile_field_id ); 
  2.  
  3. if ( !empty( $translated_string ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_get_the_profile_field_required_label callback 
  2. function filter_bp_get_the_profile_field_required_label( $translated_string, $bp_get_the_profile_field_id ) { 
  3. // make filter magic happen here... 
  4. return $translated_string
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_get_the_profile_field_required_label', 'filter_bp_get_the_profile_field_required_label', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_get_the_profile_field_required_label', 'filter_bp_get_the_profile_field_required_label', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/bp-xprofile/bp-xprofile-template.php  
  1. $retval .= apply_filters( 'bp_get_the_profile_field_required_label', $translated_string, bp_get_the_profile_field_id() );