标签:wordpress图片自动加alt

图片img标签自动添加alt,title属性

//图片img标签添加alt,title属性functionimagesalt($content){global$post;$pattern="//i";$replacement='';$content=preg_replace($pattern,$replacement,$content);return$content;}add_filter('the_content',...