wp_embed_excerpt_attachment( string $content ): string

Filters the post excerpt for the embed template.


Description

Shows players for video and audio attachments.


Top ↑

Parameters

$content string Required
The current post excerpt.

Top ↑

Return

string The modified post excerpt.


Top ↑

Source

File: wp-includes/embed.php. View all references

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

	return $content;
}


Top ↑

Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.