WordPress at a glance
function is not described

WP_Site::to_array() public WP 4.6.0

Converts an object to array.

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

No Hooks.

Return

Array. Object as array.

Usage

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

Changelog

Since 4.6.0 Introduced.

Code of WP_Site::to_array() WP 5.7.2

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