heartbeat_nopriv_tick хук-событие . WP 3.6.0
Fires when Heartbeat ticks in no-privilege environments.
Allows the transport to be easily replaced with long-polling.
Использование
add_action( 'heartbeat_nopriv_tick', 'action_function_name_1979', 10, 2 ); function action_function_name_1979( $response, $screen_id ){ // action... }
- $response(массив)
- The no-priv Heartbeat response.
- $screen_id(строка)
- The screen ID.
Список изменений
С версии 3.6.0 | Введена. |
Где вызывается хук
wp-admin/includes/ajax-actions.php 67
do_action( 'heartbeat_nopriv_tick', $response, $screen_id );