Last active
April 29, 2017 13:04
-
-
Save Scordavis/39db618f4bf4f1e7f8746118f0c19f59 to your computer and use it in GitHub Desktop.
wordpress, php
This file contains 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
//remove class from the_post_thumbnail | |
function the_post_thumbnail_remove_class($output) { | |
$output = preg_replace('/class=".*?"/', '', $output); | |
return $output; | |
} | |
add_filter('post_thumbnail_html', 'the_post_thumbnail_remove_class'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment