Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.32.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : field-csv.php
<?php
/**
 * The default field output template for CSVs.
 *
 * @global \GV\Template_Context $gravityview
 * @since 2.0
 */

if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
	gravityview()->log->error( '{file} template loaded without context', array( 'file' => __FILE__ ) );
	return;
}

$field_id      = $gravityview->field->ID;
$display_value = $gravityview->display_value;
$value         = $gravityview->value;
$entry         = $gravityview->entry->as_entry();

/**
 * Fields that will output as raw data in CSV mode.
 */
$raw_types = array(
	'email',
	'textarea',
	'website',
);

/**
 * Filters field types to output by value instead of display_value.
 *
 * @since 2.5
 * @param bool $raw Raw or not. By default, outputs raw for $raw_types.
 * @param \GV\Template_Context The context.
 */
$raw = apply_filters( 'gravityview/template/csv/field/raw', in_array( $gravityview->field->type, $raw_types, true ), $gravityview );

echo gravityview_get_field_value( $entry, $field_id, $raw ? $value : $display_value );
© 2025 XylotrechusZ