Function: wp_embed_excerpt_attachment

wp_embed_excerpt_attachment( string $content )

Filters the post excerpt for the embed template.

Shows players for video and audio attachments.

Parameters

Name Type(s) Default Value Description
$content string

The current post excerpt.

Returns

string

The modified post excerpt.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.