WP_Term::to_array() WordPress Method
The WP_Term::to_array() method is used to convert a WP_Term object into an array. This is useful for debugging or for working with data in a more programmatic way.
WP_Term::to_array() #
Converts an object to array.
Return
(array) Object as array.
Source
File: wp-includes/class-wp-term.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.4.0 | Introduced. |