xmlrpc_prepare_media_item WordPress Filter Hook
The xmlrpc_prepare_media_item hook allows you to modify a media item before it is sent via XML-RPC. This can be useful for setting custom fields or post content, for example.
apply_filters( 'xmlrpc_prepare_media_item', array $_media_item , WP_Post $media_item , string $thumbnail_size ) #
Filters XML-RPC-prepared data for the given media item.
Parameters
- $_media_item
(array)An array of media item data.
- $media_item
(WP_Post)Media item object.
- $thumbnail_size
(string)Image size.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |