Filter hook 'theme_auto_update_setting_html'

in WP Core File wp-admin/includes/class-wp-ms-themes-list-table.php at line 872

View Source

theme_auto_update_setting_html

Filter Hook
Description
Filters the HTML of the auto-updates setting for each theme in the Themes list table.

Hook Information

File Location wp-admin/includes/class-wp-ms-themes-list-table.php View on GitHub
Hook Type Filter
Line Number 872

Hook Parameters

Type Name Description
string $html The HTML for theme's auto-update setting, including toggle auto-update action link and time to next update.
string $stylesheet Directory name of the theme.
WP_Theme $theme WP_Theme object.

Usage Examples

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

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

Source Code Context

wp-admin/includes/class-wp-ms-themes-list-table.php:872 - How this hook is used in WordPress core
<?php
 867  		 * @param string   $html       The HTML for theme's auto-update setting, including
 868  		 *                             toggle auto-update action link and time to next update.
 869  		 * @param string   $stylesheet Directory name of the theme.
 870  		 * @param WP_Theme $theme      WP_Theme object.
 871  		 */
 872  		echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme );
 873  
 874  		wp_admin_notice(
 875  			'',
 876  			array(
 877  				'type'               => 'error',

PHP Documentation

<?php
/**
		 * Filters the HTML of the auto-updates setting for each theme in the Themes list table.
		 *
		 * @since 5.5.0
		 *
		 * @param string   $html       The HTML for theme's auto-update setting, including
		 *                             toggle auto-update action link and time to next update.
		 * @param string   $stylesheet Directory name of the theme.
		 * @param WP_Theme $theme      WP_Theme object.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-admin/includes/class-wp-ms-themes-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.