wppaste
WordPress

apply_filters( 'theme_auto_update_debug_string', string $auto_updates_string, WP_Theme $theme, bool $enabled )

Since
5.5.0
Filters the text string of the auto-updates setting for each theme in the Site Health debug data.

Compatibility

WordPress
since 5.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$auto_updates_stringstring
The string output for the auto-updates column.
$themeWP_Theme
An object of theme data.
$enabledbool
Whether auto-updates are enabled for this item.

Where this hook fires · 3

  • wp-admin/includes/class-wp-debug-data.php:1137WP_Debug_Data::get_wp_active_theme()
  • wp-admin/includes/class-wp-debug-data.php:1248WP_Debug_Data::get_wp_parent_theme()
  • wp-admin/includes/class-wp-debug-data.php:1369WP_Debug_Data::get_wp_themes_inactive()

Source code

				 * @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.				 */				$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled ); 				$theme_version_string       .= ' | ' . $auto_updates_string;				$theme_version_string_debug .= ', ' . $auto_updates_string;			} 			$fields[ sanitize_text_field( $theme->name ) ] = array(

Changelog

Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.