Last active
September 19, 2017 08:21
-
-
Save txid0x7f/c6518bd638787b7312748c756c0825f7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 strip_entire_image_class($html) { | |
return preg_replace('/ class="(.*)"/', '', $html); | |
} | |
add_filter('get_image_tag', 'strip_entire_image_class', 0, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment