WP_Site::to_array() WordPress Method
The WP_Site::to_array() function is used to convert a WordPress site object into an array. This is useful for passing data to other functions or for storing data in a database.
WP_Site::to_array() #
Converts an object to array.
Return
(array) Object as array.
Source
File: wp-includes/class-wp-site.php
public function to_array() { return get_object_vars( $this ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |