Filter: um_submitted_data_value

apply_filters( 'um_submitted_data_value', $value, $k, $data, $style ) → {string|array}

Filters submitted data info before displaying in modal window or submit to admin email.

Parameters:
Name Type Description
$value string | array

Submitted value.

$k string

Submitted data metakey.

$data array

Submitted data

$style bool

If styled echo

Since:
  • 2.6.8
Source:
Returns:

Is allowed verify.

Type
string | array
Example

Change submitted data info before echo.

function my_um_submitted_data_value ( $value, $metakey, $data, $style ) {
    if ( 'some_metakey' === $metakey ) {
        $value = 'new_value';
    }
    return $value;
}
add_filter( 'um_submitted_data_value', 'my_um_submitted_data_value', 10, 4 );