astra_the_excerpt()
Display Blog Post Excerpt
Description
Source
File: inc/markup-extras.php
function astra_the_excerpt() {
$excerpt_type = apply_filters( 'astra_excerpt_type', astra_get_option( 'blog-post-content' ) );
do_action( 'astra_the_excerpt_before', $excerpt_type );
if ( 'full-content' === $excerpt_type ) {
the_content();
} else {
the_excerpt();
}
do_action( 'astra_the_excerpt_after', $excerpt_type );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |