wp_embed_excerpt_more

The timeline below displays how wordpress function wp_embed_excerpt_more has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.3

/**
 * Filters the string in the 'more' link displayed after a trimmed excerpt.
 *
 * Replaces '[...]' (appended to automatically generated excerpts) with an
 * ellipsis and a "Continue reading" link in the embed template.
 *
 * @since 4.4.0
 *
 * @param string $more_string Default 'more' string.
 * @return string 'Continue reading' link prepended with an ellipsis.
 */
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;
}

WordPress Version: 4.4

/**
 * Filters the string in the 'more' link displayed after a trimmed excerpt.
 *
 * Replaces '[...]' (appended to automatically generated excerpts) with an
 * ellipsis and a "Continue reading" link in the embed template.
 *
 * @since 4.4.0
 *
 * @param string $more_string Default 'more' string.
 * @return string 'Continue reading' link prepended with an ellipsis.
 */
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: Name of current post */
        sprintf(__('Continue reading %s'), '<span class="screen-reader-text">' . get_the_title() . '</span>')
    );
    return ' &hellip; ' . $link;
}