LLMS_Generator::parse_raw( string|array|obj $raw )
Parse raw data
Parameters Parameters
- $raw
-
(string|array|obj) (Required) Accepts a JSON string, array, or object of raw data to pass to a generator.
Return Return
(array)
Source Source
File: includes/class.llms.generator.php
protected function parse_raw( $raw ) { if ( is_string( $raw ) ) { $raw = json_decode( $raw, true ); } return (array) $raw; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |