Docs

EVF_Form_Fields::field_preview_option( string $option, array $field, array $args = array(), boolean $echo = true ): mixed

Helper function to create common field options that are used frequently in the field preview.

Parameters

$optionstringrequired
Field option to render.
$fieldarrayrequired
Field data and settings.
$argsarrayoptional
Field preview arguments.

Default:array()

$echobooleanoptional
Print or return the value. Print by default.

Default:true

Return

mixed Print or return a string.

Changelog

VersionDescription
1.0.0Introduced.