-
Notifications
You must be signed in to change notification settings - Fork 4
this accessor
Polmonite edited this page Sep 21, 2019
·
1 revision
The this
accessor calls a method of the underlying Malini\Post
; it is
possible to add more methods to an instance of the Malini\Post
using the
extend
method.
Syntax:
@this:{method_name}
-
{method_name}
: name of the method to call.
The Malini\Post
does not expose a lot of useful methods to retrieve data, but it is possible to dinamically add methods to an instance using the extend
method.
It is particularly useful when creating custom accessors.
Examples:
- 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