Skip to content

Instantly share code, notes, and snippets.

@pfefferle
Created March 14, 2013 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfefferle/5160340 to your computer and use it in GitHub Desktop.
Save pfefferle/5160340 to your computer and use it in GitHub Desktop.
<?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