perusing ur readme, i found
* Added new filters for the attachment markup customization:
dco_ca_get_attachment_preview
and dco_ca_get_attachment_preview_image
.
so i added
function cg_get_attachment_preview_image($attachment_content, $attachment_id, $thumbnail_size )
{
$title = do_shortcode('[exif show="nohtml," id=' . $attachment_id . "]");
return str_replace( '<a',
"<a title='" . $title . "' ",
$attachment_content );
}
add_filter( 'dco_ca_get_attachment_preview_image', 'cg_get_attachment_preview_image' );
but i got this:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function cg_get_attachment_preview_image(), 1 passed in /home/cardin55/public_html/wp-includes/class-wp-hook.php on line 310 and exactly 3 expected in /home/cardin55/public_html/wp-content/plugins/cghoa/cghoa.php:157 Stack trace: #0 /home/cardin55/public_html/wp-includes/class-wp-hook.php(310): cg_get_attachment_preview_image('<p class="dco-a...') #1 /home/cardin55/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('<p class="dco-a...', Array) #2 /home/cardin55/public_html/wp-content/plugins/dco-comment-attachment/includes/class-dco-ca-base.php(200): apply_filters('dco_ca_get_atta...', '<p class="dco-a...', '7608', 'medium') #3 /home/cardin55/public_html/wp-content/plugins/dco-comment-attachment/includes/class-dco-ca.php(629): DCO_CA_Base->get_attachment_preview('7608') #4 /home/cardin55/public_html/wp-content/plugins/dco-comment-attachment/includes/class-dco-ca.php(577): DCO_CA->generate_attachment_markup(Array) #5 /home/cardin55/public_html/wp-i in /home/cardin55/public_html/wp-content/plugins/cghoa/cghoa.php on line 157
perhaps i am missing something?