WordPress at a glance
function is not described

WP_Term::to_array() public WP 4.4.0

Converts an object to array.

{} It's a method of the class: WP_Term{}

No Hooks.

Return

Array. Object as array.

Usage

$WP_Term = new WP_Term();
$WP_Term->to_array();

Changelog

Since 4.4.0 Introduced.

Code of WP_Term::to_array() WP 5.5.1

<?php
public function to_array() {
	return get_object_vars( $this );
}