-
Notifications
You must be signed in to change notification settings - Fork 4
decorators_index
Polmonite edited this page Sep 21, 2019
·
1 revision
A Decorator is a class that enrich a Malini\Post
with other data.
All decorators are registered in the DecoratorRegistry.
When registered in the DecoratorRegistry they are given a unque name, used by the engine to retrieve them, so they can be called in a more user-friendly way.
Custom decorators can be defined and registered in the registry; see here how.
The core decorators are:
-
WithPostData, registered as
post
; -
WithCategories, registered as
categories
; -
WithTags, registered as
tags
; -
WithTaxonomies, registered as
taxonomies
; -
WithFeaturedImage, registered as
featuredimage
; -
WithAllMetas, registered as
all_metas
.
- Getting started
- Why Malini
- BaseAccessor
- ThisAccessor
- AllMetaAccessor
- MetaAccessor
- GroupedMetaAccessor
- MediaAccessor
- PostsAccessor
- PostAccessor
- Malini\Post
- Malini\Archive
- JSON Helper
- Filter Option Syntax
- Create your own Accessor
- Create your own Decorator
- Available Extensions
- Malini\Aeria
- Malini\YOAST
- Malini\ACF