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.
Parameters Parameters
- $post_properties
-
(array) (Required) Array of post properties to set.
Return Return
(void|WP_Error)
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' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |