Skip to content

with all metas

petertank edited this page Dec 4, 2019 · 2 revisions

WithAllMetas

The all_meta decorator adds to the Malini\Post all the post-meta related to this post.

Attributes added:

  • post_meta: an associative array containing all the post-meta values, indexed by their meta_key.

Options:

  • filter: the attributes we want to retrieve; see filter option syntax;
  • automerge_fields: boolean value that specify if we want to avoid creating the post_meta attribute and explodes all the custom fields at the top level; defaults to false;
  • auto_detect_single: boolean value that specify if we want to try and automatically detect if a post-meta is a single value or not; defaults to false.

Other

Extend Malini

  • Create your own Accessor
  • Create your own Decorator
  • Available Extensions
    • Malini\Aeria
    • Malini\YOAST
    • Malini\ACF
Clone this wiki locally