heartbeat_settings
Filter HookDescription
Filters the Heartbeat settings.Hook Information
File Location |
wp-includes/script-loader.php
View on GitHub
|
Hook Type | Filter |
Line Number | 867 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$settings
|
Heartbeat settings array. |
Usage Examples
Basic Usage
<?php
// Hook into heartbeat_settings
add_filter('heartbeat_settings', 'my_custom_filter', 10, 1);
function my_custom_filter($settings) {
// Your custom filtering logic here
return $settings;
}
Source Code Context
wp-includes/script-loader.php:867
- How this hook is used in WordPress core
<?php
862 *
863 * @since 3.6.0
864 *
865 * @param array $settings Heartbeat settings array.
866 */
867 apply_filters( 'heartbeat_settings', array() )
868 );
869
870 $scripts->add( 'wp-auth-check', "/wp-includes/js/wp-auth-check$suffix.js", array( 'heartbeat' ), false, 1 );
871 $scripts->set_translations( 'wp-auth-check' );
872
PHP Documentation
<?php
/**
* Filters the Heartbeat settings.
*
* @since 3.6.0
*
* @param array $settings Heartbeat settings array.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/script-loader.php
Related Hooks
Related hooks will be displayed here in future updates.