Last active
February 27, 2016 23:33
-
-
Save BurlesonBrad/fa3aa4ae165d83f039dc to your computer and use it in GitHub Desktop.
Phil Kills off Admin Ajax via a Plugin
This file contains hidden or 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: 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