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)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.post.model.php


			

Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.