', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'aem_slate_pingback_header' ); /** * aem_slate Excerpt Length * * @since aem_slate 1.0.0 * * @param null * @return void */ if ( ! function_exists( 'aem_slate_excerpt_length' ) ) : /** * Implement excerpt length. * * @since 1.0.0 * * @param int $length The number of words. * @return int Excerpt length. */ function aem_slate_excerpt_length( $length ) { if ( is_admin() ) { return $length; } $excerpt_length = get_theme_mod( 'excerpt_length', 28 ); if ( absint( $excerpt_length ) > 0 ) { $length = absint( $excerpt_length ); } return $length; } endif; add_filter( 'excerpt_length', 'aem_slate_excerpt_length', 999 );