get_acpt_meta_field_advanced_option
Get a specific advanced option value of a meta field
Retrieve the value of a specific advanced option set on a meta field.
Advanced options are the extra settings available in the Advanced options tab of the meta fields manager (e.g. min, max, step, pattern, default_value).
Usage
$minValue = get_acpt_meta_field_advanced_option('my_box', 'price_field', 'min');Parameters
Parameter
Type
Required
Description
box_name
string
Required
The meta box name
field_name
string
Required
The field name
key
string
Required
The advanced option key (e.g. min, max, step, pattern, before, after)
Return
Type
Description
mixed
The option value on success
null
If the field or the option key does not exist
Last updated