WordPress at Your Fingertips
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();

Code of WP_Site::to_array() WP 5.8.3

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