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