wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
wp_embed_excerpt_more › WordPress Function
Desde4.4.0
Obsoleton/a
› wp_embed_excerpt_more ( $more_string )
Parâmetros: |
|
Retorna: |
|
Definido em: |
|
Codex: |
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.Funções relacionadas: wp_embed_excerpt_attachment, wp_html_excerpt, wp_trim_excerpt, _wp_oembed_get_object, wp_oembed_get
Fonte
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 ' … ' . $link; }