LLMS_Abstract_Generator_Posts::store_temp_id( array $raw, LLMS_Post_Model $obj )
Accepts a raw object, finds the raw id and stores it
Parameters Parameters
- $raw
-
(array) (Required) Array of raw data.
- $obj
-
(LLMS_Post_Model) (Required) The LLMS Post Object generated from the raw data.
Return Return
(int|false) Raw id when present or false
if no raw id was found.
Source Source
File: includes/abstracts/llms-abstract-generator-posts.php
$new_src = $this->sideload_image( $post_id, $src ); if ( ! is_wp_error( $new_src ) ) { $find[] = $src; $replace[] = $new_src; } } if ( $find && $replace ) { $content = str_replace( $find, $replace, $post->get( 'content', true ) ); return $post->set( 'content', $content ); } return false; } /** * Accepts a raw object, finds the raw id and stores it * * @since 3.3.0
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |