um_view_field_value_{$type}

Hook type

Filter

Description

Change field HTML on view mode by field type

Parameters

$output

(string) Field HTML

$data

(string) Field Data

Usage

add_filter( 'um_view_field_value_{$type}', 'function_name', 10, 2 );

Examples

<?php
add_filter( 'um_view_field_value_{$type}', 'my_view_field', 10, 2 );
function my_form_edit_field( $output, $data ) {
    // your code here
return $output;
}
?>

Change Log

Since: 2.0

Source

um_view_field_value_{$type} is located in includes/core/class-fields.php::line 3458