wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_embed_excerpt_attachment › WordPress Function

Desde4.4.0
Obsoleton/a
wp_embed_excerpt_attachment ( $content )
Parâmetros:
  • (string) $content The current post excerpt.
    Required: Yes
Retorna:
  • (string) The modified post excerpt.
Definido em:
Codex:

Filters the post excerpt for the embed template.

Shows players for video and audio attachments.


Fonte

function wp_embed_excerpt_attachment( $content ) {
	if ( is_attachment() ) {
		return prepend_attachment( '' );
	}

	return $content;
}