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_Post_Model::update_post_properties( array $post_properties )

Update post properties.


Description Description

Logic moved from set_bulk() method.


Top ↑

Parameters Parameters

$post_properties

(array) (Required) Array of post properties to set.


Top ↑

Return Return

(void|WP_Error)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.post.model.php

	private function update_post_properties( $post_properties ) {

		if ( empty( $post_properties ) ) {
			return;
		}

		$args = array_merge(
			$post_properties,
			array(
				'ID' => $this->get( 'id' ),
			)
		);

		$update_post = wp_update_post( wp_slash( $args ), true );

		if ( is_wp_error( $update_post ) ) {
			return $update_post;
		}

		// Update this post.
		$this->post = get_post( $this->get( 'id' ) );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
6.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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