theme_auto_update_debug_string
Filters the text string of the auto-updates setting for each theme in the Site Health debug data.
Использование
add_filter( 'theme_auto_update_debug_string', 'wp_kama_theme_auto_update_debug_string_filter', 10, 3 ); /** * Function for `theme_auto_update_debug_string` filter-hook. * * @param string $auto_updates_string The string output for the auto-updates column. * @param WP_Theme $theme An object of theme data. * @param bool $enabled Whether auto-updates are enabled for this item. * * @return string */ function wp_kama_theme_auto_update_debug_string_filter( $auto_updates_string, $theme, $enabled ){ // filter... return $auto_updates_string; }
- $auto_updates_string(строка)
- The string output for the auto-updates column.
- $theme(WP_Theme)
- An object of theme data.
- $enabled(true|false)
- Whether auto-updates are enabled for this item.
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
theme_auto_update_debug_string
theme_auto_update_debug_string
theme_auto_update_debug_string
wp-admin/includes/class-wp-debug-data.php 1369
$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled );
wp-admin/includes/class-wp-debug-data.php 1137
$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $active_theme, $enabled );
wp-admin/includes/class-wp-debug-data.php 1248
$parent_theme_auto_update_string = apply_filters( 'theme_auto_update_debug_string', $parent_theme_auto_update_string, $parent_theme, $enabled );