LLMS_Post_Model::toArrayCustom( array $arr )
Called by toArray to add custom fields via get_post_meta()
Description Description
Removes all custom props registered to the $this->properties automatically. Also removes some fields used by the WordPress core that don’t hold necessary data. Extending classes may override this class to exclude, extend, or modify the custom fields for a post type.
Parameters Parameters
- $arr
-
(Required) Existing post array.
Return Return
(array)
Source Source
File: includes/abstracts/abstract.llms.post.model.php
Changelog Changelog
Version | Description |
---|---|
3.30.2 | Add filter to allow 3rd parties to prevent a field from being added to the custom field array. |
3.30.0 | Use maybe_unserialize() to ensure array data is accessible as an array. |
3.16.11 | Introduced. |