gform_user_registration_is_new_file_upload

Description

The “gform_user_registration_is_new_file_upload” filter in the Gravity Forms User Registration Add-On allows you to change whether or not new files have been uploaded when an Update User feed is processed.

Usage

add_filter( 'gform_user_registration_is_new_file_upload', 'upload_custom_action', 10, 3 );

Parameters

  • $is_new_file_upload bool

    Whether new files have been uploaded.

  • $form_id int

    The current form ID.

  • $input_name string

    The current input name.

Examples

	add_filter( 'gform_user_registration_is_new_file_upload', 'upload_custom_action', 10, 3 );
	function upload_custom_action( $is_new_file_upload, $form_id, $input_name ) {

		// Do your custom stuff here.

		return $is_new_file_upload;
	}

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in User Registration version 4.9.

Source Code

This filter is located in GF_User_Registration::is_new_file_upload() in gravityformsuserregistration/class-gf-user-registration.php.