wp_embed_excerpt_more( string   $more_string ): string

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

Description

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

Parameters

$more_string string required
Default 'more' string.

Return

string ‘Continue reading’ linc prepended with an ellipsis.

Source

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

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

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

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