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
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' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: