gform_is_encrypted_field

Description

Determines if an entry field is stored encrypted. Use this hook to change the default behavior of decrypting fields that have been encrypted or to completely disable the process if checking for encrypted fields.

Usage

add_filter( 'gform_is_encrypted_field', 'your_function_name', 10, 2 );

Parameters

  • $is_encrypted string

    Defaults to ”

  • $entry_id int

    The current Entry ID.

  • $field_id int

    he current Field ID.

Example

add_filter( 'gform_is_encrypted_field', 'not_encrypted', 10, 3 );
function not_encrypted( $is_encrypted, $entry_id, $field_id ){
	return false;
}

Placement

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

Since

This filter was added in Gravity Forms version 1.9.14.

Source Code

This filter is located in:

GFFormsModel::is_encrypted_field() in forms_model.php
GFFormsModel::is_openssl_encrypted_field() in forms_model.php.