prepend_attachment WordPress Filter Hook
The prepend_attachment hook is called before an attachment is inserted into a post. It can be used to modify the attachment data before it is saved to the database.
apply_filters( 'prepend_attachment', string $p ) #
Filters the attachment markup to be prepended to the post content.
Description
See also
Parameters
- $p
(string)The attachment HTML output.
Source
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |