bp_get_the_profile_field_birthdate

The BuddyPress Xprofile Custom Fields Type bp get the profile field birthdate hook.

Description

apply_filters( 'bp_get_the_profile_field_birthdate', (unknown) $html, (unknown) $args_type, (unknown) $day, (unknown) $month, (unknown) $year, (unknown) $this_field_obj_id, (unknown) $date ); 

Parameters (7)

0. $html (unknown)
The html.
1. $args_type (unknown)
The args type.
2. $day (unknown)
The day.
3. $month (unknown)
The month.
4. $year (unknown)
The year.
5. $this_field_obj_id (unknown)
The this field obj id.
6. $date (unknown)
The date.

Usage

To run the hook, copy the example below.
  1. $html = apply_filters( 'bp_get_the_profile_field_birthdate', $html, $args_type, $day, $month, $year, $this_field_obj_id, $date ); 
  2.  
  3. if ( !empty( $html ) ) { 
  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_birthdate callback 
  2. function filter_bp_get_the_profile_field_birthdate( $html, $args_type, $day, $month, $year, $this_field_obj_id, $date ) { 
  3. // make filter magic happen here... 
  4. return $html
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_get_the_profile_field_birthdate', 'filter_bp_get_the_profile_field_birthdate', 10, 7 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_get_the_profile_field_birthdate', 'filter_bp_get_the_profile_field_birthdate', 10, 7 ); 

Defined (1)

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

/classes/Bxcft_Field_Type_Birthdate.php  
  1. echo apply_filters( 'bp_get_the_profile_field_birthdate', $html, $args['type'], $day, $month, $year, $this->field_obj->id, $date );