Uses
Uses | Description |
---|---|
wp-includes/query.php: is_attachment() | Determines whether the query is for an existing attachment page. |
wp-includes/post-template.php: prepend_attachment() | Wrap attachment in paragraph tag before content. |
Filters the post excerpt for the embed template.
Shows players for video and audio attachments.
(string) (Required) The current post excerpt.
(string) The modified post excerpt.
File: wp-includes/embed.php
function wp_embed_excerpt_attachment( $content ) { if ( is_attachment() ) { return prepend_attachment( '' ); } return $content; }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_embed_excerpt_attachment