Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Generator::set_featured_image( string $url_or_raw, int $post_id )
Saves an image (from URL) to the media library and sets it as the featured image for a given post
Parameters Parameters
- $url_or_raw
-
(string) (Required) Array of raw data or URL to an image.
- $post_id
-
(int) (Required) WP Post ID.
Return Return
(void)
Source Source
File: includes/class.llms.generator.php
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |