Created
March 14, 2013 10:35
-
-
Save pfefferle/5160340 to your computer and use it in GitHub Desktop.
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
<?php | |
/* | |
Plugin Name: disable post-thumbnails (SemPress) | |
Plugin URI: https://gist.github.com/pfefferle/5160340 | |
Description: disable post-thumbnails (SemPress) | |
Author: Matthias Pfefferle | |
Author URI: http://notizblog.org | |
Version: 1.0.0 | |
License: GPL v3 (http://www.gnu.org/licenses/gpl.html) | |
*/ | |
function remove_sempress_post_thumbnail() { | |
remove_action('the_content', 'sempress_post_thumbnail', 1); | |
remove_filter('the_content', 'sempress_post_thumbnail', 1); | |
} | |
add_action('init', 'remove_sempress_post_thumbnail'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment