wp_embed_excerpt_more

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

Description

(string) wp_embed_excerpt_more( (string) $more_string ); 

Replaces [...] (appended to automatically generated excerpts) with an ellipsis and a Continue reading link in the embed template.

Returns (string)

'Continue reading' link prepended with an ellipsis.

Parameters (1)

0. $more_string (string)
Default more string.

Usage

  1. if ( !function_exists( 'wp_embed_excerpt_more' ) ) { 
  2. require_once ABSPATH . WPINC . '/embed.php'; 
  3.  
  4. // Default 'more' string. 
  5. $more_string = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_embed_excerpt_more($more_string); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/embed.php  
  1. function wp_embed_excerpt_more( $more_string ) { 
  2. if ( ! is_embed() ) { 
  3. return $more_string; 
  4.  
  5. $link = sprintf( '<a href="%1$s" class="wp-embed-more" target="_top">%2$s</a>',  
  6. /** translators: %s: Name of current post */ 
  7. sprintf( __( 'Continue reading %s' ), '<span class="screen-reader-text">' . get_the_title() . '</span>' ) 
  8. ); 
  9. return ' … ' . $link;