gform_user_registration_is_new_file_upload

gform_user_registration_is_new_file_upload

DescriptionUsageParametersExamplesPlacementSinceSource Code

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

1add_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

1234567add_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.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注