Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.35 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.35 KB

Malini Aeria

Malini Accessors and Decorators for Aeria.

Depends on both:

Decorators:

Adds the Aeria decorator:

malini_post()->decorate('aeria');

Accepted options:

  • filter: the attributes we want to retrieve; see filter option syntax;
  • automerge_fields: if false specifies that the attributes retrieved will be nested inside an aeria_fields key; otherwise they will be added at the root level (defaults to false);
  • automerge_level: if automerge_fields is true, we can also specify the wanted automerge_level; if it's 1, the Aeria fields will be grouped through their respective metabox_id; if it's 2, they will be added at the root level, ignoring the metabox_id; no other values are allowed; automerge_level is ignored if automerge_fields is false (defaults to 1).

Accessors:

@aeria:{metabox_id},{field_id},{default}

  • metabox_id: the id of the wanted metabox; if no metabox_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 no field_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 to null.