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.


Top ↑

Return Return

(null|boolean) Returns true on success, false if there were no images to update, or null if sideloading is disabled.


Top ↑

Source Source

File: includes/abstracts/llms-abstract-generator-posts.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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