For the complete documentation index, see llms.txt. This page is also available as Markdown.

get_acpt_meta_field_before_and_after

Get the before/after advanced-option text configured on a meta field

Convenience wrapper around get_acpt_meta_field_advanced_option that fetches both the before and after advanced-option values for a field in one call.

Usage

$context = get_acpt_meta_field_before_and_after('my_box', 'price_field');

echo $context['before'] . $value . $context['after'];

Parameters

Parameter
Type
Required
Description

box_name

string

Required

The meta box name

field_name

string

Required

The field name

Return

Type
Description

array

['before' => ..., 'after' => ...] — either value is null when not configured, or when the field does not exist

Last updated