LLMS_Post_Handler::update_excerpt( $post_id, $excerpt )
Contents
Source Source
File: includes/class.llms.post.handler.php
public static function update_excerpt( $post_id, $excerpt ) { $post_data = array( 'ID' => $post_id, 'post_excerpt' => $excerpt, ); // Update the post into the database. $updated_post_id = wp_update_post( $post_data ); if ( $updated_post_id ) { return array( 'id' => $updated_post_id, 'post_excerpt' => $excerpt, ); } }
Expand full source code Collapse full source code View on GitHub