LLMS_Post_Handler::update_excerpt( $post_id,  $excerpt )


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,
        );
    }
 
}


Top ↑

User Contributed Notes User Contributed Notes

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