theme_auto_update_setting_html filter-hookWP 5.5.0

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

Usage

add_filter( 'theme_auto_update_setting_html', 'wp_kama_theme_auto_update_setting_html_filter', 10, 3 );

/**
 * Function for `theme_auto_update_setting_html` filter-hook.
 * 
 * @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.
 *
 * @return string
 */
function wp_kama_theme_auto_update_setting_html_filter( $html, $stylesheet, $theme ){

	// filter...
	return $html;
}
$html(string)
The HTML for theme's auto-update setting, including toggle auto-update action link and time to next update.
$stylesheet(string)
Directory name of the theme.
$theme(WP_Theme)
WP_Theme object.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

WP_MS_Themes_List_Table::column_autoupdates()
theme_auto_update_setting_html
wp-admin/includes/class-wp-ms-themes-list-table.php 861
echo apply_filters( 'theme_auto_update_setting_html', $html, $stylesheet, $theme );

Where the hook is used in WordPress

Usage not found.