(', ')' ), array( '(', ')' ), $links );
}
}
add_filter( 'wp_list_categories', 'beka_cat_count' );
if ( ! function_exists( 'beka_archive_count' ) ) {
/**
* Add Span tag Around Archives Post Count.
*
* @param $links
*
* @return mixed
*/
function beka_archive_count( $links ) {
return str_replace( array( ' (', ')' ), array( '(', ')' ), $links );
}
}
add_filter( 'get_archives_link', 'beka_archive_count' );
/**
* Limit the Length of Excerpt.
*
* @param $length
*
* @return string
*/
function beka_excerpt_length( $length ) {
return (int) apply_filters( 'beka_excerpt_length', 42 );
}
add_filter( 'excerpt_length', 'beka_excerpt_length', 999 );
/**
* Remove &hellip from excerpt.
*
* @param $more
*
* @return string
*/
function beka_excerpt_more( $more ) {
return (string) apply_filters( 'beka_excerpt_more', '' );
}
add_filter( 'excerpt_more', 'beka_excerpt_more' );