bpxp_image_field_image_uploaded

The BuddyPress XProfile Image Field bpxp image field uploaded hook.

Description

apply_filters( 'bpxp_image_field_image_uploaded', (unknown) $db_uploaded_file, (unknown) $wp_uploaded_file ); 

Parameters (2)

0. $db_uploaded_file (unknown)
The db uploaded file.
1. $wp_uploaded_file (unknown)
The wp uploaded file.

Usage

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

Defined (1)

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

/bp-xprofile-image-field.php  
  1. $uploaded_file = apply_filters('bpxp_image_field_image_uploaded', $db_uploaded_file, $wp_uploaded_file);