Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
WordPress Plugin: Auto-embeds Disabler
* Plugin Name: Auto-embeds Disabler
* Version: 0.1
* Description: Disables the auto-embeds function in WordPress 3.5
* Author: Dominik Schilling
* Author URI:
* Plugin URI:
* License: GPLv2 or later
* Copyright (C) 2012 Dominik Schilling
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
remove_filter( 'the_content', array( $GLOBALS['wp_embed'], 'autoembed' ), 8 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment