LLMS_Post_Handler::update_title( $post_id, $title )
Contents
Source Source
File: includes/class.llms.post.handler.php
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,
);
}
}
Expand full source code Collapse full source code View on GitHub