WP_Site::to_array()publicWP 4.6.0

Converts an object to array.

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.

WP_Site::to_array() code WP 6.5.2

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