LLMS_Abstract_Generator_Posts::sideload_images( LLMS_Post_Model $post, array $raw )
Sideload images found in a given post
Description Description
This attempts to sideload the src attribute of every element found in the
post_content of the supplied post.
Parameters Parameters
- $post
-
(Required) Post object.
- $raw
-
(Required) Array of raw data.
Return Return
(null|boolean) Returns true on success, false if there were no images to update, or null if sideloading is disabled.
Source Source
File: includes/abstracts/llms-abstract-generator-posts.php
Changelog Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |