LLMS_Membership::toArrayAfter( array $arr )
Add data to the membership model when converted to array.
Description Description
Called before data is sorted and returned by $this->jsonSerialize()
.
Parameters Parameters
- $arr
-
(array) (Required) Data to be serialized.
Return Return
(array)
Source Source
File: includes/models/model.llms.membership.php
public function toArrayAfter( $arr ) { $arr['categories'] = $this->get_categories( array( 'fields' => 'names', ) ); $arr['tags'] = $this->get_tags( array( 'fields' => 'names', ) ); return $arr; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.36.3 | Introduced. |