Description
Filter the image data. Image URL, Title, Caption, Description, and Alt Text.
Usage
apply_filters(
'wp_data_sync_image'
,
$image
,
$post_id
);
Parameters
$image | array | Image Data | $post_id | int | WP Psot ID |
Code Example
add_filter(
'wp_data_sync_image',
function
(
$image
,
$post_id
) {
Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/wp-data-sync-core/views/documentation.php on line 117
return
$image
;
), 10, 2 );