Last active
April 9, 2024 15:09
-
-
Save amberhinds/b721c08d704cfc927bcbeb15f7257628 to your computer and use it in GitHub Desktop.
edac_max_alt_length Accessibility Checker filter example
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
function change_max_alt_length( $max ) { | |
return 100; // Shorten alt text max character count to 100 from default (300). | |
} | |
add_filter( 'edac_max_alt_length', 'change_max_alt_length' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment