PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / trunk
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant vtrunk
2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 1.9.12 All 59 releases
merchant / admin / classes / admin-options / interface-merchant-field.php

interface-merchant-field.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant trunk, at admin/classes/admin-options/interface-merchant-field.php

52 lines 839 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Merchant Field Interface.
4 *
5 * Defines the contract that all field types must follow.
6 *
7 * @package Merchant
8 * @since 2.2.5
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit; // Exit if accessed directly
13 }
14
15 /**
16 * Merchant_Field_Interface
17 *
18 * @since 2.2.5
19 */
20 interface Merchant_Field_Interface {
21
22 /**
23 * Render the field HTML output.
24 *
25 * @since 2.2.5
26 * @return void
27 */
28 public function render();
29
30 /**
31 * Sanitize the submitted field value.
32 *
33 * @since 2.2.5
34 *
35 * @param mixed $value The raw submitted value.
36 *
37 * @return mixed The sanitized value.
38 */
39 public function sanitize( $value );
40
41 /**
42 * Preprocess the field value before saving.
43 *
44 * @since 2.2.5
45 *
46 * @param mixed $value The sanitized value.
47 *
48 * @return mixed The preprocessed value.
49 */
50 public function preprocess( $value );
51 }
52