bxcft_field_label

The BuddyPress Xprofile Custom Fields Type bxcft field label hook.

Description

Parameters (6)

0. $label (unknown)
The label.
1. $bp_get_the_profile_field_id (unknown) => bp_get_the_profile_field_id()
The bp get the profile field id.
2. $bp_get_the_profile_field_type (unknown) => bp_get_the_profile_field_type()
The bp get the profile field type.
3. $bp_get_the_profile_field_input_name (string) => bp_get_the_profile_field_input_name()
The bp get the profile field input name.
4. $bp_get_the_profile_field_name (string) => bp_get_the_profile_field_name()
The bp get the profile field name.
5. $bp_get_the_profile_field_is_required (unknown) => bp_get_the_profile_field_is_required()
The bp get the profile field is required.

Usage

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

Defined (9)

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

/classes/Bxcft_Field_Type_Web.php  
  1. echo apply_filters('bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required()); 
/classes/Bxcft_Field_Type_Slider.php  
  1. echo apply_filters('bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required()); 
/classes/Bxcft_Field_Type_NumberMinMax.php  
  1. echo apply_filters('bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required()); 
/classes/Bxcft_Field_Type_Image.php  
  1. echo apply_filters( 'bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required() ); 
/classes/Bxcft_Field_Type_File.php  
  1. echo apply_filters( 'bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required() ); 
/classes/Bxcft_Field_Type_Email.php  
  1. echo apply_filters('bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required()); 
/classes/Bxcft_Field_Type_DecimalNumber.php  
  1. echo apply_filters('bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required()); 
/classes/Bxcft_Field_Type_Datepicker.php  
  1. echo apply_filters('bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required()); 
/classes/Bxcft_Field_Type_Birthdate.php  
  1. echo apply_filters('bxcft_field_label', $label, bp_get_the_profile_field_id(), bp_get_the_profile_field_type(), bp_get_the_profile_field_input_name(), bp_get_the_profile_field_name(), bp_get_the_profile_field_is_required());