LLMS_Post_Handler::update_excerpt( $post_id,  $excerpt )


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

	}


Top ↑

User Contributed Notes User Contributed Notes

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