wphooks.info - heartbeat_nopriv_tick

heartbeat_nopriv_tick

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/ajax-actions.php:
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
	/**
	 * Fires when Heartbeat ticks in no-privilege environments.
	 *
	 * Allows the transport to be easily replaced with long-polling.
	 *
	 * @since 3.6.0
	 *
	 * @param array|object $response  The no-priv Heartbeat response.
	 * @param string       $screen_id The screen id.
	 */
	do_action( 'heartbeat_nopriv_tick', $response, $screen_id );

	// Send the current time according to the server.
	$response['server_time'] = time();

	wp_send_json($response);
}

//
// GET-based Ajax handlers.