wp_embed_excerpt_more( string $more_string )

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

Description Description

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

Parameters Parameters


(string) (Required) Default 'more' string.

Top ↑

Return Return

(string) 'Continue reading' link prepended with an ellipsis.

Top ↑

Source Source

File: wp-includes/embed.php

function wp_embed_excerpt_more( $more_string ) {
	if ( ! is_embed() ) {
		return $more_string;

	$link = sprintf(
		'<a href="%1$s" class="wp-embed-more" target="_top">%2$s</a>',
		esc_url( get_permalink() ),
		/* translators: %s: Post title. */
		sprintf( __( 'Continue reading %s' ), '<span class="screen-reader-text">' . get_the_title() . '</span>' )
	return ' &hellip; ' . $link;

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.