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.


Top ↑

Return Return

(int|false) Raw id when present or false if no raw id was found.


Top ↑

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


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.