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
1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 | 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. |