# learnpress/4.1.7.2/inc/admin/meta-box/fields/radio.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.1.7.2. 33 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.1.7.2/code/inc/admin/meta-box/fields/radio.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.1.7.2/raw/inc/admin/meta-box/fields/radio.php
- Modified: 2022-09-23T02:52:32+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/learnpress/4.1.7.2/code/inc/admin/meta-box/fields/radio.php#L10-L20`.

```php
<?php $option_value = $value['value']; ?>

<tr valign="top">
	<th scope="row" class="titledesc">
		<label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?> <?php echo wp_kses_post( $tooltip_html ); ?></label>
	</th>
	<td class="forminp forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>">
		<fieldset>
			<?php echo wp_kses_post( $description ); ?>
			<ul>
			<?php
			foreach ( $value['options'] as $key => $val ) {
				?>
				<li>
					<label><input
						name="<?php echo esc_attr( $value['id'] ); ?>"
						value="<?php echo esc_attr( $key ); ?>"
						type="radio"
						style="<?php echo esc_attr( $value['css'] ); ?>"
						class="<?php echo esc_attr( $value['class'] ); ?>"
						<?php echo implode( ' ', $custom_attributes ); ?>
						<?php checked( $key, $option_value ); ?>
						/> <?php echo esc_html( $val ); ?></label>
				</li>
				<?php
			}
			?>
			</ul>
		</fieldset>
	</td>
</tr>


```
