Replace empty alt in wordpress post content with filter
I need to replace empty image alt in wordpress post content with image file name I'm working on this function at the moment, please look at the comments: // replace empty alt function replace_empty_alt($content){ if (is_single()) { // searching in…