W3cubDocs

/WordPress

_json_decode_object_helper( object $data )

Description

Parameters

$data

(object) (Required)

Return

(array)

Source

File: wp-includes/compat.php

function _json_decode_object_helper( $data ) {
		if ( is_object( $data ) ) {
			$data = get_object_vars( $data );
		}
		return is_array( $data ) ? array_map( __FUNCTION__, $data ) : $data;
	}

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