Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_embed_excerpt_attachment ›

Da4.4.0
Deprecaton/a
wp_embed_excerpt_attachment ( $content )
Parametri:
  • (string) $content The current post excerpt.
    Richiesto:
Ritorna:
  • (string) The modified post excerpt.
Definito a:
Codex:

Filters the post excerpt for the embed template.

Shows players for video and audio attachments.



Sorgenti

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

	return $content;
}