Skip to content

Instantly share code, notes, and snippets.

View deikka's full-sized avatar

Alex deikka

  • Kintsugi LAB / Kothar AI
  • Cádiz, Spain
View GitHub Profile
@joshfeck
joshfeck / wpe_heartbeat.php
Last active March 7, 2017 22:28
DE-disallows WPEngine's disallowing of the WordPress Heartbeat API
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
add_filter( 'wpe_heartbeat_allowed_pages', 'my_wpe_add_allowed_pages' );
function my_wpe_add_allowed_pages( $heartbeat_allowed_pages ) {
$heartbeat_allowed_pages = array(
'index.php',
'admin.php',
'edit.php',