Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Malini Accessors and Decorators for Aeria

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages