WordPress at a glance
function is not described

WP_User::to_array() public WP 3.5.0

Return an array representation.

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

No Hooks.

Return

Array. Array representation.

Usage

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

Changelog

Since 3.5.0 Introduced.

Code of WP_User::to_array() WP 5.7

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