Title: excerpt_more
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( ‘excerpt_more’, string $more_string )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#wp--skip-link--target)

Filters the string in the “more” link displayed after a trimmed excerpt.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#parameters)󠁿

 `$more_string`string

The string shown within the more link.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#more-information)󠁿

This filter is called by the [wp_trim_excerpt()](https://developer.wordpress.org/reference/functions/wp_trim_excerpt/)
function. By default, the filter is set to echo ‘[…]’ as the excerpt more string
at the end of the excerpt.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#source)󠁿

    ```php
    $excerpt_more = apply_filters( 'excerpt_more', ' ' . '[&hellip;]' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/formatting.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/formatting.php#L4028)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/formatting.php#L4028-L4028)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_trim_excerpt()](https://developer.wordpress.org/reference/functions/wp_trim_excerpt/)`wp-includes/formatting.php` |

Generates an excerpt from the content, if needed.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.9.0](https://developer.wordpress.org/reference/since/2.9.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 5 content](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#comment-content-2406)
 2.    [SaltTechno](https://profiles.wordpress.org/salttechno/)  [  8 years ago  ](https://developer.wordpress.org/reference/hooks/excerpt_more/#comment-2406)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%23comment-2406)
     Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%23comment-2406)
 4.  **How to replace […] by some other string?**
      In following code, we are replacing[…]
     by just … You can send any string in return.
 5.      ```php
         /**
          * Change the excerpt more string
          */
          function my_theme_excerpt_more( $more ) {
              return '&hellip;';
          }
          add_filter( 'excerpt_more', 'my_theme_excerpt_more' );
         ```
     
 6.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%3Freplytocom%3D2406%23feedback-editor-2406)
 7.   [Skip to note 6 content](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#comment-content-2054)
 8.    Anonymous User  [  9 years ago  ](https://developer.wordpress.org/reference/hooks/excerpt_more/#comment-2054)
 9.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%23comment-2054)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%23comment-2054)
 10. **How To Add A “Continue Reading” Link To Excerpts**
 11.     ```php
         function wpdocs_excerpt_more( $more ) {
             return sprintf( '<a href="%1$s" class="more-link">%2$s</a>',
                   esc_url( get_permalink( get_the_ID() ) ),
                   sprintf( __( 'Continue reading %s', 'wpdocs' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
             );
         }
         add_filter( 'excerpt_more', 'wpdocs_excerpt_more' );
         ```
     
 12.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%3Freplytocom%3D2054%23feedback-editor-2054)
 13.  [Skip to note 7 content](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#comment-content-4566)
 14.   [Steven Lin](https://profiles.wordpress.org/stevenlinx/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/excerpt_more/#comment-4566)
 15. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%23comment-4566)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%23comment-4566)
 16. Example migrated from Codex:
 17. To change excerpt more string, add the following code to _functions.php_ file 
     in your theme:
 18.     ```php
         function custom_excerpt_more( $more ) {
         	return '[.....]';
         }
         add_filter( 'excerpt_more', 'custom_excerpt_more' );
         ```
     
 19. For versions older than 2.9 use:
 20.     ```php
         function custom_excerpt_more( $excerpt ) {
         	return str_replace( '[…]', '...', $excerpt );
         }
         add_filter( 'wp_trim_excerpt', 'custom_excerpt_more' );
         ```
     
 21.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%3Freplytocom%3D4566%23feedback-editor-4566)
 22.  [Skip to note 8 content](https://developer.wordpress.org/reference/hooks/excerpt_more/?output_format=md#comment-content-6272)
 23.   [Yahya Bakr](https://profiles.wordpress.org/yahyabakr1010/)  [  3 years ago  ](https://developer.wordpress.org/reference/hooks/excerpt_more/#comment-6272)
 24. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%23comment-6272)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%23comment-6272)
 25. Add A “Read more” with post link.
 26.     ```php
            function wpdocs_custom_excerpt_more( $more ) { 
            $more = ' … Read more ';
            return $more;
         }
     
         add_filter( 'excerpt_more', 'wpdocs_custom_excerpt_more' );
         ```
     
 27.  *     ```php
            $more = '<a href="' . esc_url( get_post_permalink() ) .'"> ... Read more</a>';
            ```
        
      * [Yahya Bakr](https://profiles.wordpress.org/yahyabakr1010/) [3 years ago](https://developer.wordpress.org/reference/hooks/excerpt_more/#comment-6304)
 28.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F%3Freplytocom%3D6272%23feedback-editor-6272)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fexcerpt_more%2F)
before being able to contribute a note or feedback.