llms_get_excerpt( int $post_id )
Retrieve an excerpt
Parameters Parameters
- $post_id
-
(int) (Required) WordPress post id
Return Return
(string)
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; }
Expand full source code Collapse full source code View on GitHub