gform_include_bom_export_entries

Description

Allows the BOM character to be excluded from the beginning of entry export files.

Usage

The following would apply to all forms.

add_filter( 'gform_include_bom_export_entries', 'your_function_name' );

Parameters

  • $include_bom bool
    Whether or not to include the BOM character. Defaults to true.
  • $form Form Object
    The current form.

Example

Exclude the byte order mark.

add_filter( 'gform_include_bom_export_entries', 'exclude_bom', 10, 2 );
function exclude_bom( $include_bom, $form ){
	// change the bom to false
	return false;
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Source Code

This filter is located in export.php.