is_product_field()
public static function is_product_field( $field_type )
Checks if a field is a product field.
Since: 2.1.1.12 (Added support for hiddenproduct, singleproduct, and singleshipping input types.)
Source: common.php:2854
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$field_type | string | The field type. |
Returns
bool— Returns true if it is a product field. Otherwise, false.