Skip to content

Instantly share code, notes, and snippets.

@giucu91
Created October 4, 2021 09:23
Show Gist options
  • Save giucu91/ed1d8e94361af839a96e34a56871ca1e to your computer and use it in GitHub Desktop.
Save giucu91/ed1d8e94361af839a96e34a56871ca1e to your computer and use it in GitHub Desktop.
add_filter( 'modula_shortcode_item_data', 'modula_ada_compliance', 99 );
function modula_ada_compliance( $item_data ){
$item_data['link_attributes']['aria-label'] = 'opens light box for ' . $item_data['img_attributes']['alt'];
return $item_data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment