Malini Accessors and Decorators for Aeria.
Depends on both:
Adds the Aeria decorator:
malini_post()->decorate('aeria');
Accepted options:
filter
: the attributes we want to retrieve; see filter option syntax;automerge_fields
: iffalse
specifies that the attributes retrieved will be nested inside anaeria_fields
key; otherwise they will be added at the root level (defaults tofalse
);automerge_level
: ifautomerge_fields
istrue
, we can also specify the wantedautomerge_level
; if it's1
, the Aeria fields will be grouped through their respectivemetabox_id
; if it's2
, they will be added at the root level, ignoring themetabox_id
; no other values are allowed;automerge_level
is ignored ifautomerge_fields
isfalse
(defaults to1
).
@aeria:{metabox_id},{field_id},{default}
metabox_id
: the id of the wanted metabox; if nometabox_id
is provided, all Aeria meta fields will be retrieved for this post;field_id
: the id of the wanted field in this metabox; if nofield_id
is provided, all Aeria meta fields of this metabox will be retrieved;default
: default value if the field is not set for this post; defaults tonull
.