LLMS_Post_Handler::update_title( $post_id,  $title )


Source Source

File: includes/class.llms.post.handler.php

62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
public static function update_title( $post_id, $title ) {
 
    $post_data = array(
        'ID'         => $post_id,
        'post_title' => $title,
    );
 
    // Update the post into the database.
    $updated_post_id = wp_update_post( $post_data );
 
    if ( $updated_post_id ) {
        return array(
            'id'    => $updated_post_id,
            'title' => $title,
        );
    }
 
}


Top ↑

User Contributed Notes User Contributed Notes

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