Codex tools: Log in / create account
Contents |
This filter is used by wp_trim_excerpt() function. By default it set to echo '[...]' more string at the end of the excerpt.
To change excerpt more string, add the following code to functions.php file in your theme:
function new_excerpt_more($more) {
return '[.....]';
}
add_filter('excerpt_more', 'new_excerpt_more');
For versions older then 2.9 use:
function new_excerpt_more($excerpt) {
return str_replace('[...]', '...', $excerpt);
}
add_filter('wp_trim_excerpt', 'new_excerpt_more');
wp_trim_excerpt() is located in wp-includes/formatting.php.