Skip to content

Instantly share code, notes, and snippets.

@ocean90
Created September 27, 2012 21:42
Show Gist options
  • Save ocean90/3796628 to your computer and use it in GitHub Desktop.
Save ocean90/3796628 to your computer and use it in GitHub Desktop.
WordPress Plugin: Auto-embeds Disabler
<?php
/**
* Plugin Name: Auto-embeds Disabler
* Version: 0.1
* Description: Disables the auto-embeds function in WordPress 3.5
* Author: Dominik Schilling
* Author URI: http://wphelper.de/
* Plugin URI: http://wpgrafie.de/1078/
*
*
* 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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* 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