astra_custom_excerpt_length( int $length )

Blog Custom excerpt length.


Description


Parameters

$length

(int) (Required) Length.


Return

(int)


Source

File: inc/blog/blog.php

function astra_custom_excerpt_length( $length ) {
	$blog_layout = astra_get_blog_layout();
	return 'blog-layout-4' === $blog_layout ? 20 : $length;
}

Changelog

Changelog
Version Description
4.6.0 Introduced.


User Contributed Notes

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