gform_file_upload_whitelisting_disabled

gform_file_upload_whitelisting_disabled

DescriptionUsageParametersExamplePlacementSource Code

Description
The 「gform_file_upload_whitelisting_disabled」 filter in Gravity Forms allows the disabling of file upload whitelisting. This filter applies to all forms.
Usage
The following would apply to all forms.
add_filter('gform_file_upload_whitelisting_disabled', '__return_true');

Parameters

$disabled bool
Set to 『true』 to disable whitelisting. Defaults to 『false』.

Example
$whitelisting_disabled = apply_filters( 'gform_file_upload_whitelisting_disabled', false );

Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in includes/upload.php and includes/fields/class-gf-field-fileupload.php.

发表回复

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