Filter hook 'enable_loading_advanced_cache_dropin'

in WP Core File wp-admin/includes/class-wp-site-health.php at line 3428

View Source

enable_loading_advanced_cache_dropin

Filter Hook
Description
$sslverify = apply_filters( 'https_local_ssl_verify', false ); $headers = array(); /* Include basic auth in loopback requests. Note that this will only pass along basic auth when user is initiating the test. If a site requires basic auth, the test will fail when it runs in WP Cron as part of wp_site_health_scheduled_check. This logic is copied from WP_Site_Health::can_perform_loopback().

Hook Information

File Location wp-admin/includes/class-wp-site-health.php View on GitHub
Hook Type Filter
Line Number 3428

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into enable_loading_advanced_cache_dropin
add_filter('enable_loading_advanced_cache_dropin', 'my_custom_filter');

function my_custom_filter() {
    // Your custom filtering logic here
    return 'modified_value';
}

Source Code Context

wp-admin/includes/class-wp-site-health.php:3428 - How this hook is used in WordPress core
<?php
3423  				file_exists( WP_CONTENT_DIR . '/advanced-cache.php' )
3424  				&&
3425  				( defined( 'WP_CACHE' ) && WP_CACHE )
3426  				&&
3427  				/** This filter is documented in wp-settings.php */
3428  				apply_filters( 'enable_loading_advanced_cache_dropin', true )
3429  			),
3430  			'page_caching_response_headers' => $page_caching_response_headers,
3431  			'response_timing'               => $response_timing,
3432  		);
3433  	}

PHP Documentation

<?php
/** This filter is documented in wp-includes/class-wp-http-streams.php */
		$sslverify = apply_filters( 'https_local_ssl_verify', false );

		$headers = array();

		/*
		 * Include basic auth in loopback requests. Note that this will only pass along basic auth when user is
		 * initiating the test. If a site requires basic auth, the test will fail when it runs in WP Cron as part of
		 * wp_site_health_scheduled_check. This logic is copied from WP_Site_Health::can_perform_loopback().
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 0
  • File: wp-admin/includes/class-wp-site-health.php
Related Hooks

Related hooks will be displayed here in future updates.