W3cubDocs

/WordPress

apply_filters( ‘prepend_attachment’, string $p )

Filters the attachment markup to be prepended to the post content.

Description

See also

Parameters

$pstring
The attachment HTML output.

Source

$p = apply_filters( 'prepend_attachment', $p );

Changelog

Version Description
2.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/prepend_attachment