Skip to content
Malini Accessors and Decorators for Aeria
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MaliniAeria
vendor
LICENSE
README.md
composer.json
malini_aeria.php

README.md

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.
You can’t perform that action at this time.