Title: theme_auto_update_setting_template
Published: August 11, 2020
Last modified: February 24, 2026

---

# apply_filters( ‘theme_auto_update_setting_template’, string $template )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#wp--skip-link--target)

Filters the JavaScript template used to display the auto-update setting for a theme(
in the overlay).

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#description)󠁿

See [wp_prepare_themes_for_js()](https://developer.wordpress.org/reference/functions/wp_prepare_themes_for_js/)
for the properties of the `data` object.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#parameters)󠁿

 `$template`string

The template for displaying the auto-update setting link.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'theme_auto_update_setting_template', $template );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/themes.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/themes.php#L826)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/themes.php#L826-L826)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_theme_auto_update_setting_template()](https://developer.wordpress.org/reference/functions/wp_theme_auto_update_setting_template/)`wp-admin/themes.php` |

Returns the JavaScript template used to display the auto-update setting for a theme.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/theme_auto_update_setting_template/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Ftheme_auto_update_setting_template%2F)
before being able to contribute a note or feedback.