W3cubDocs

/WordPress

WP_User::to_array()

Return an array representation.

Return

(array) Array representation.

Source

File: wp-includes/class-wp-user.php

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

Changelog

Version Description
3.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_user/to_array