# give/4.18.0/src/Form/LegacyConsumer/templates/hidden.html.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 18 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Form/LegacyConsumer/templates/hidden.html.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Form/LegacyConsumer/templates/hidden.html.php
- Modified: 2021-11-23T23:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Form/LegacyConsumer/templates/hidden.html.php#L10-L20`.

```php
<?php
/** @var Give\Framework\FieldsAPI\Hidden $field */ ?>
<?php
/** @var string $fieldIdAttribute */ ?>
<input
    type="hidden"
    name="<?php
    echo $field->getName(); ?>"
    id="<?php
    echo $fieldIdAttribute; ?>"
    <?php
    if ($value = $field->getDefaultValue()) : ?>
        value="<?php
        echo esc_attr($value); ?>"
    <?php
    endif; ?>
/>

```
