Filter hook 'site_status_persistent_object_cache_url'

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

View Source

site_status_persistent_object_cache_url

Filter Hook
Description
Filters the action URL for the persistent object cache health check.

Hook Information

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

Hook Parameters

Type Name Description
string $action_url Learn more link for persistent object cache health check.

Usage Examples

Basic Usage
<?php
// Hook into site_status_persistent_object_cache_url
add_filter('site_status_persistent_object_cache_url', 'my_custom_filter', 10, 1);

function my_custom_filter($action_url) {
    // Your custom filtering logic here
    return $action_url;
}

Source Code Context

wp-admin/includes/class-wp-site-health.php:2507 - How this hook is used in WordPress core
<?php
2502  		 *
2503  		 * @since 6.1.0
2504  		 *
2505  		 * @param string $action_url Learn more link for persistent object cache health check.
2506  		 */
2507  		$action_url = apply_filters(
2508  			'site_status_persistent_object_cache_url',
2509  			/* translators: Localized Support reference. */
2510  			__( 'https://developer.wordpress.org/advanced-administration/performance/optimization/#persistent-object-cache' )
2511  		);
2512  

PHP Documentation

<?php
/**
		 * Filters the action URL for the persistent object cache health check.
		 *
		 * @since 6.1.0
		 *
		 * @param string $action_url Learn more link for persistent object cache health check.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/includes/class-wp-site-health.php
Related Hooks

Related hooks will be displayed here in future updates.