equalizedigital / accessibility-checker

GNU General Public License v2.0
14 stars 8 forks source link

Add max alt length filter to documentation for the Image Long Alternative Text rule #554

Closed SteveJonesDev closed 5 months ago

SteveJonesDev commented 5 months ago

Usage:

function change_max_alt_length() {
    return 100; // New maximum length you want to set.
}
add_filter( 'edac_max_alt_length',  'change_max_alt_length' );
amberhinds commented 5 months ago

@pattonwebz we don't have an established format for these yet. What do you think of this? https://equalizedigital.com/?p=7709&post_type=a11y-checker&preview=1&_ppp=bf54b5456c

pattonwebz commented 5 months ago

The post preview looks good to me. Shows how to use the filter and provides a complete example. This will be more than sufficient for anyone writing code to use for their needs.

amberhinds commented 5 months ago

Thanks. Published: https://equalizedigital.com/accessibility-checker/edac_max_alt_length/