# merchant/2.3.2/admin/classes/admin-options/interface-merchant-field.php

Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together &amp; More for WooCommerce – Merchant, version 2.3.2. 52 lines.

- Page: https://pluginprobe.com/plugins/merchant/2.3.2/code/admin/classes/admin-options/interface-merchant-field.php
- Raw: https://pluginprobe.com/plugins/merchant/2.3.2/raw/admin/classes/admin-options/interface-merchant-field.php
- Modified: 2026-09-17T17:48:06+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/merchant/2.3.2/code/admin/classes/admin-options/interface-merchant-field.php#L10-L20`.

```php
<?php
/**
 * Merchant Field Interface.
 *
 * Defines the contract that all field types must follow.
 *
 * @package Merchant
 * @since   2.2.5
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * Merchant_Field_Interface
 *
 * @since 2.2.5
 */
interface Merchant_Field_Interface {

	/**
	 * Render the field HTML output.
	 *
	 * @since 2.2.5
	 * @return void
	 */
	public function render();

	/**
	 * Sanitize the submitted field value.
	 *
	 * @since 2.2.5
	 *
	 * @param mixed $value The raw submitted value.
	 *
	 * @return mixed The sanitized value.
	 */
	public function sanitize( $value );

	/**
	 * Preprocess the field value before saving.
	 *
	 * @since 2.2.5
	 *
	 * @param mixed $value The sanitized value.
	 *
	 * @return mixed The preprocessed value.
	 */
	public function preprocess( $value );
}

```
