Warning: This method has been deprecated. Misspelling of Requests::flatten instead.
Requests::flattern() WordPress Method
The Requests::flattern() method is a great way to reduce the amount of code you need to write when making requests to WordPress. This method allows you to make a request and then automatically flatten the response into an array. This can be extremely useful when making requests to WordPress sites that return a lot of data.
Requests::flattern( array $array ) #
Convert a key => value array to a ‘key: value’ array for headers
Parameters
- $array
(array)(Required)Dictionary of header values
Return
(array) List of headers
Source
File: wp-includes/class-requests.php
public static function flattern($array) { return self::flatten($array); }
Expand full source codeCollapse full source codeView on TracView on GitHub