LLMS_Post_Handler::update_excerpt( $post_id, $excerpt )
Contents
Source Source
File: includes/class.llms.post.handler.php
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | 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