Skip to content

Instantly share code, notes, and snippets.

@BurlesonBrad
Last active February 27, 2016 23:33
Show Gist options
  • Save BurlesonBrad/fa3aa4ae165d83f039dc to your computer and use it in GitHub Desktop.
Save BurlesonBrad/fa3aa4ae165d83f039dc to your computer and use it in GitHub Desktop.
Phil Kills off Admin Ajax via a Plugin
<?php
/**
* Plugin Name: Phil Kills of Admin Ajax via a Plugin
* Plugin URI: https://yourmom.com
* Description: A Drop In Plugin That'll kill off admin-ajax.php. No options, just ACTIVE or INCACTIVE :-)
* Version: 1
* Author: Brad
* Author URI: https://yourmom.com
* Requires at least: 4.5
* Tested up to: 4.5
**/
/* Phil Kills of Admin Ajax via a Plugin */
/* Simply drop this file into your plugins folder via FTP or add the code to your child themes functions.php */
/* It's gonna completely kill off any and all admin-ajax.php options */
/* Autosave & Locking Live Edits to Only ONE person will be disabled */
/* If you know you ain't ever gonna need those two options, leave 'em DISABLED & leave this plugin ACTIVE */
add_action( 'init', 'stop_the_dang_heartbeat_permanently', 1 );
function stop_the_dang_heartbeat_permanently() {
wp_deregister_script('heartbeat');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment