<?php
/**
 * Excerpt related functions.
 *
 * @package Sunflower 26
 */

/**
 * Get the length of the excerpt from settings.
 */
function sunflower_excerpt_length() {
	return sunflower_get_setting( 'excerpt_length' ) ? sunflower_get_setting( 'excerpt_length' ) : 15;
}

add_filter( 'excerpt_length', 'sunflower_excerpt_length', 900 );

// Add excerpt to pages, too.
add_post_type_support( 'page', 'excerpt' );
