heartbeat_nopriv_received filter-hookWP 3.6.0

Filters Heartbeat Ajax response in no-privilege environments.

Usage

add_filter( 'heartbeat_nopriv_received', 'wp_kama_heartbeat_nopriv_received_filter', 10, 3 );

/**
 * Function for `heartbeat_nopriv_received` filter-hook.
 * 
 * @param array  $response  The no-priv Heartbeat response.
 * @param array  $data      The $_POST data sent.
 * @param string $screen_id The screen ID.
 *
 * @return array
 */
function wp_kama_heartbeat_nopriv_received_filter( $response, $data, $screen_id ){

	// filter...
	return $response;
}
$response(array)
The no-priv Heartbeat response.
$data(array)
The $_POST data sent.
$screen_id(string)
The screen ID.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_ajax_nopriv_heartbeat()
heartbeat_nopriv_received
wp-admin/includes/ajax-actions.php 43
$response = apply_filters( 'heartbeat_nopriv_received', $response, $data, $screen_id );

Where the hook is used in WordPress

Usage not found.