Description
Filter the image data. Image URL, Title, Caption, Description, and Alt Text.
Usage
add_filter(
'wp_data_sync_image'
,
'my_image'
, 10, 2
);
Parameters
$image
array
Image Data
$post_id
int
WP Psot ID
Code Example
add_filter(
'wp_data_sync_image'
,
'my_image'
, 10, 2
);
function
my_image
(
$image
,
$post_id
) {
return
$image
;
}