Filter hook 'theme_auto_update_debug_string'

in WP Core File wp-admin/includes/class-wp-debug-data.php at line 1397

View Source

theme_auto_update_debug_string

Filter Hook
Description
Filters the text string of the auto-updates setting for each theme in the Site Health debug data.

Hook Information

File Location wp-admin/includes/class-wp-debug-data.php View on GitHub
Hook Type Filter
Line Number 1397

Hook Parameters

Type Name Description
string $auto_updates_string The string output for the auto-updates column.
WP_Theme $theme An object of theme data.
bool $enabled Whether auto-updates are enabled for this item.

Usage Examples

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

function my_custom_filter($auto_updates_string, $theme, $enabled) {
    // Your custom filtering logic here
    return $auto_updates_string;
}

Source Code Context

wp-admin/includes/class-wp-debug-data.php:1397 - How this hook is used in WordPress core
<?php
1392  				 *
1393  				 * @param string   $auto_updates_string The string output for the auto-updates column.
1394  				 * @param WP_Theme $theme               An object of theme data.
1395  				 * @param bool     $enabled             Whether auto-updates are enabled for this item.
1396  				 */
1397  				$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled );
1398  
1399  				$theme_version_string       .= ' | ' . $auto_updates_string;
1400  				$theme_version_string_debug .= ', ' . $auto_updates_string;
1401  			}
1402  

PHP Documentation

<?php
/**
				 * Filters the text string of the auto-updates setting for each theme in the Site Health debug data.
				 *
				 * @since 5.5.0
				 *
				 * @param string   $auto_updates_string The string output for the auto-updates column.
				 * @param WP_Theme $theme               An object of theme data.
				 * @param bool     $enabled             Whether auto-updates are enabled for this item.
				 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-admin/includes/class-wp-debug-data.php
Related Hooks

Related hooks will be displayed here in future updates.