Disable default "Image" alt text?

I’ve tried this:

add_filter( 'cs_fallback_alt_text', function($text) {
  return '';
} );

and

add_filter( 'cs_fallback_alt_text', '__return_empty_string' );

based on this help article, but this removes alt completely from the image element.

For EAA we must comply with having alt on images, even if they are decorative (which, if decorative, must still have an empty alt tag).

This currently seems to be impossible… but I’m hoping someone has a solution. I simply want to leave the alt text box blank in Cornerstone and expect a blank alt attribute in my image.

Hey Scott,

Thanks for writing in! Instead of displaying an empty string, try adding a Space character:

add_filter( 'cs_fallback_alt_text', function($text) {
  return ' ';
} );

Hope this helps.