formcierge_entry_display_data
Filter

Since v1.0.0

Modify how an entry field value is displayed in the admin entry list and detail view.

Parameters
$value string The value formatted for display.
$field_id string The field ID.
$entry_id int The entry ID.
Defined in
includes/Controllers/EntryController.php
add_filter( 'formcierge_entry_display_data', function ( $value, $field_id, $entry_id ) {
    if ( str_contains( $field_id, 'card' ) ) {
        return '**** **** **** ' . substr( $value, -4 );
    }
    return $value;
}, 10, 3 );