LLMS_Post_Model::toArray()
Coverts the object to an associative array
Description Description
Any property returned by $this->get_properties() will be retrieved via $this->get() and added to the array.
Extending classes can add additional properties to the array by overriding $this->toArrayAfter().
This function is also utilized to serialize the object to JSON.
Return Return
(array)
Source Source
File: includes/abstracts/abstract.llms.post.model.php
Changelog Changelog
Version | Description |
---|---|
4.8.0 | Exclude extra data by default. Added 'llms_post_model_to_array_add_extras' filter. |
4.7.0 | Add exporting of extra data (images and blocks). |
3.3.0 | |
3.17.0 | Introduced. |