Created
October 4, 2021 09:23
-
-
Save giucu91/ed1d8e94361af839a96e34a56871ca1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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