apply_filters( 'excerpt_more', string $more_string )
Filters the string in the “more” link displayed after a trimmed excerpt.
Contents
Parameters
-
$more_string
string -
The string shown within the more link.
More Information
This filter is called by the wp_trim_excerpt() function. By default, the filter is set to echo ‘[…]’ as the excerpt more string at the end of the excerpt.
Source
File: wp-includes/formatting.php
.
View all references
$excerpt_more = apply_filters( 'excerpt_more', ' ' . '[…]' );
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
How to replace […] by some other string?
In following code, we are replacing […] by just …
You can send any string in return.
How To Add A “Continue Reading” Link To Excerpts
Example migrated from Codex:
To change excerpt more string, add the following code to functions.php file in your theme:
For versions older than 2.9 use:
Add A “Read more” with post link.
Top ↑
Feedback
— By Yahya Bakr —