bhubbard
6/1/2016 - 8:37 PM

DE-disallows WPEngine's disallowing of the WordPress Heartbeat API

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',
    	'post.php',
    	'post-new.php',
    );
    return $heartbeat_allowed_pages;
}