site_status_persistent_object_cache_url
Filters the action URL for the persistent object cache health check.
Использование
add_filter( 'site_status_persistent_object_cache_url', 'wp_kama_site_status_persistent_object_cache_url_filter' ); /** * Function for `site_status_persistent_object_cache_url` filter-hook. * * @param string $action_url Learn more link for persistent object cache health check. * * @return string */ function wp_kama_site_status_persistent_object_cache_url_filter( $action_url ){ // filter... return $action_url; }
- $action_url(строка)
- Learn more link for persistent object cache health check.
Список изменений
С версии 6.1.0 | Введена. |
Где вызывается хук
site_status_persistent_object_cache_url
wp-admin/includes/class-wp-site-health.php 2613-2617
$action_url = apply_filters( 'site_status_persistent_object_cache_url', /* translators: Localized Support reference. */ __( 'https://wordpress.org/documentation/article/optimization/#persistent-object-cache' ) );