LLMS_Generator::__construct( array|string $raw )

Construct a new generator instance with data


Description Description


Parameters Parameters

$raw

(array|string) (Required) array or json string of raw content


Top ↑

Source Source

File: includes/class.llms.generator.php

	public function __construct( $raw ) {

		if ( ! is_array( $raw ) ) {

			$raw = json_decode( $raw, true );

		}

		$this->error = new WP_Error();
		$this->raw = $raw;

		// for featured image creation via `media_sideload_image()`
		require_once( ABSPATH . 'wp-admin/includes/media.php' );
		require_once( ABSPATH . 'wp-admin/includes/file.php' );
		require_once( ABSPATH . 'wp-admin/includes/image.php' );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: