theme_auto_update_setting_html хук-фильтрWP 5.5.0

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

Использование

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(строка)
The HTML for theme's auto-update setting, including toggle auto-update action link and time to next update.
$stylesheet(строка)
Directory name of the theme.
$theme(WP_Theme)
WP_Theme object.

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.