theme_auto_update_setting_template
Filter HookDescription
Filters the JavaScript template used to display the auto-update setting for a theme (in the overlay). See {@see wp_prepare_themes_for_js()} for the properties of the `data` object.Hook Information
File Location |
wp-admin/themes.php
View on GitHub
|
Hook Type | Filter |
Line Number | 826 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$template
|
The template for displaying the auto-update setting link. |
Usage Examples
Basic Usage
<?php
// Hook into theme_auto_update_setting_template
add_filter('theme_auto_update_setting_template', 'my_custom_filter', 10, 1);
function my_custom_filter($template) {
// Your custom filtering logic here
return $template;
}
Source Code Context
wp-admin/themes.php:826
- How this hook is used in WordPress core
<?php
821 *
822 * @since 5.5.0
823 *
824 * @param string $template The template for displaying the auto-update setting link.
825 */
826 return apply_filters( 'theme_auto_update_setting_template', $template );
827 }
828
829 /*
830 * The tmpl-theme template is synchronized with PHP above!
831 */
PHP Documentation
<?php
/**
* Filters the JavaScript template used to display the auto-update setting for a theme (in the overlay).
*
* See {@see wp_prepare_themes_for_js()} for the properties of the `data` object.
*
* @since 5.5.0
*
* @param string $template The template for displaying the auto-update setting link.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/themes.php
Related Hooks
Related hooks will be displayed here in future updates.