# convertkit/2.0.0/views/backend/term/fields.php

Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages, version 2.0.0. 52 lines.

- Page: https://pluginprobe.com/plugins/convertkit/2.0.0/code/views/backend/term/fields.php
- Raw: https://pluginprobe.com/plugins/convertkit/2.0.0/raw/views/backend/term/fields.php
- Modified: 2022-07-18T15:43:00+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/convertkit/2.0.0/code/views/backend/term/fields.php#L10-L20`.

```php
<?php
/**
 * Edit Term Fields template
 *
 * @package ConvertKit
 * @author ConvertKit
 */

?>
<tr class="form-field">
	<th scope="row">
		<label for="description"><?php esc_html_e( 'ConvertKit Form', 'convertkit' ); ?></label>
	</th>
	<td>
		<div class="convertkit-select2-container">
			<select name="wp-convertkit[form]" id="wp-convertkit-form" class="convertkit-select2">
				<option value="0"<?php selected( 0, $convertkit_term->get_form() ); ?> data-preserve-on-refresh="1">
					<?php esc_html_e( 'Default', 'convertkit' ); ?>
				</option>
				<?php
				if ( $convertkit_forms->exist() ) {
					foreach ( $convertkit_forms->get() as $convertkit_form ) {
						?>
						<option value="<?php echo esc_attr( $convertkit_form['id'] ); ?>"<?php selected( $convertkit_form['id'], $convertkit_term->get_form() ); ?>>
							<?php echo esc_html( $convertkit_form['name'] ); ?>
						</option>
						<?php
					}
				}
				?>
			</select>
			<button class="wp-convertkit-refresh-resources" class="button button-secondary" title="<?php esc_attr_e( 'Refresh Forms from ConvertKit account', 'convertkit' ); ?>" data-resource="forms" data-field="#wp-convertkit-form">
				<span class="dashicons dashicons-update"></span>
			</button>
			<p class="description">
				<?php _e( '<code>Default</code>: Display a form based on the Post\'s settings.', 'convertkit' ); /* phpcs:ignore */ ?>
				<br />
				<?php
				echo sprintf(
					/* translators: Taxonomy Name */
					esc_html__( 'Any other option will display that form after the main content for Posts assigned to this %s.', 'convertkit' ),
					'category'
				);
				?>
			</p>
		</div>
		<?php
		wp_nonce_field( 'wp-convertkit-save-meta', 'wp-convertkit-save-meta-nonce' );
		?>
	</td>
</tr>

```
