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.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.generator.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.