WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp heartbeat settings

Description

Default settings for heartbeat. Outputs the nonce used in the heartbeat XHR.

Parameters

$settings
(array) (required)
Default: None

Return

(array) 
Settings.

Usage

 <?php  ?> 

Example

Outputs the nonce used in the heartbeat XHR.

function wp_heartbeat_settings_3242( $settings ) {
    $settings['interval'] = 60; //Anything between 15-120
    return $settings;
}
add_filter( 'heartbeat_settings', 'wp_heartbeat_settings_3242' );

Change Log

Source File

wp_heartbeat_settings() is located in wp-includes/general-template.php.

Related

Function ref links

This article is marked as in need of editing. You can help Codex by editing it.
This page is marked as incomplete. You can help Codex by expanding it.