get_acpt_meta_field_objects
Get an array of meta field object representations
Get an array of meta field object representations for a given WordPress context.
Usage
$fields = get_acpt_meta_field_objects('customPostType', false, 'page');Parameters
Parameter
Type
Required
Description
belongsTo
string
Required
The context type. Allowed values: customPostType, optionPage, taxonomy, user
clonedFields
boolean
Optional
Whether to include cloned fields in the results. Defaults to false
find
string
Optional
The target slug (e.g. the post type slug page). Can be omitted when belongsTo is user
Return
Type
Description
array
An array of \stdClass field objects. Returns an empty array if none are found
Last updated