WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 3 times in this file.
Line | Code |
---|---|
1177 | } |
1178 |
|
1179 | if ( $enabled ) { |
1180 | $auto_updates_string = __( 'Enabled' ); |
1181 | } else { |
1182 | $auto_updates_string = __( 'Disabled' ); |
1183 | } |
1184 |
|
1185 | /** This filter is documented in wp-admin/includes/class-wp-debug-data.php */ |
1186 | $auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $active_theme, $enabled ); |
1187 |
|
1188 | $info['wp-active-theme']['fields']['auto_update'] = array( |
1189 | 'label' => __( 'Auto-updates' ), |
1190 | 'value' => $auto_updates_string, |
1191 | 'debug' => $auto_updates_string, |
1192 | ); |
1193 | } |
1194 |
|
1195 | $parent_theme = $active_theme->parent(); |
Line | Code |
1263 | } |
1264 |
|
1265 | if ( $enabled ) { |
1266 | $parent_theme_auto_update_string = __( 'Enabled' ); |
1267 | } else { |
1268 | $parent_theme_auto_update_string = __( 'Disabled' ); |
1269 | } |
1270 |
|
1271 | /** This filter is documented in wp-admin/includes/class-wp-debug-data.php */ |
1272 | $parent_theme_auto_update_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $parent_theme, $enabled ); |
1273 |
|
1274 | $info['wp-parent-theme']['fields']['auto_update'] = array( |
1275 | 'label' => __( 'Auto-update' ), |
1276 | 'value' => $parent_theme_auto_update_string, |
1277 | 'debug' => $parent_theme_auto_update_string, |
1278 | ); |
1279 | } |
1280 | } |
1281 |
|
Line | Code |
1359 | /** |
1360 | * Filters the text string of the auto-updates setting for each theme in the Site Health debug data. |
1361 | * |
1362 | * @since 5.5.0 |
1363 | * |
1364 | * @param string $auto_updates_string The string output for the auto-updates column. |
1365 | * @param WP_Theme $theme An object of theme data. |
1366 | * @param bool $enabled Whether auto-updates are enabled for this item. |
1367 | */ |
1368 | $auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled ); |
1369 |
|
1370 | $theme_version_string .= ' | ' . $auto_updates_string; |
1371 | $theme_version_string_debug .= ', ' . $auto_updates_string; |
1372 | } |
1373 |
|
1374 | $info['wp-themes-inactive']['fields'][ sanitize_text_field( $theme->name ) ] = array( |
1375 | 'label' => sprintf( |
1376 | /* translators: 1: Theme name. 2: Theme slug. */ |
1377 | __( '%1$s (%2$s)' ), |