llms_get_excerpt( int $post_id )

Retrieve an excerpt


Parameters Parameters

$post_id

(int) (Required) WordPress post id


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/llms.template.functions.php

function llms_get_excerpt( $post_id ) {
	global $post;

	$temp = $post;
	$post = get_post( $post_id );
	setup_postdata( $post );

	$excerpt = apply_filters( 'the_excerpt', $post->post_excerpt );

	wp_reset_postdata();
	$post = $temp;

	return $excerpt;
}


Top ↑

User Contributed Notes User Contributed Notes

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