Astra_Ext_Blog_Pro_Markup::custom_excerpt_length( int $length )

Excerpt count.


Description


Parameters

$length

(int) (Required) default count of words.


Return

(int) count of words


Source

File: addons/blog-pro/classes/class-astra-ext-blog-pro-markup.php

		public function custom_excerpt_length( $length ) {

			$excerpt_length = astra_get_option( 'blog-excerpt-count' );

			if ( '' != $excerpt_length ) {
				$length = $excerpt_length;
			}

			return $length;
		}

User Contributed Notes

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