Codex

Plugin API/Filter Reference/excerpt more

Contents

Description

This filter is used by wp_trim_excerpt() function. By default it set to echo '[...]' more string at the end of the excerpt.

Examples

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');

Change Log

Source File

wp_trim_excerpt() is located in wp-includes/formatting.php.

Related

This page is marked as incomplete. You can help Codex by expanding it.