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.


Top ↑

Return Return

(array)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.