Filter hook 'plugin_auto_update_debug_string'

in WP Core File wp-admin/includes/class-wp-debug-data.php at line 1018

View Source

plugin_auto_update_debug_string

Filter Hook
Description
Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.

Hook Information

File Location wp-admin/includes/class-wp-debug-data.php View on GitHub
Hook Type Filter
Line Number 1018

Hook Parameters

Type Name Description
string $auto_updates_string The string output for the auto-updates column.
string $plugin_path The path to the plugin file.
array $plugin An array of plugin data.
bool $enabled Whether auto-updates are enabled for this item.

Usage Examples

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

function my_custom_filter($auto_updates_string, $plugin_path, $plugin, $enabled) {
    // Your custom filtering logic here
    return $auto_updates_string;
}

Source Code Context

wp-admin/includes/class-wp-debug-data.php:1018 - How this hook is used in WordPress core
<?php
1013  				 * @param string $auto_updates_string The string output for the auto-updates column.
1014  				 * @param string $plugin_path         The path to the plugin file.
1015  				 * @param array  $plugin              An array of plugin data.
1016  				 * @param bool   $enabled             Whether auto-updates are enabled for this item.
1017  				 */
1018  				$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );
1019  
1020  				$plugin_version_string       .= ' | ' . $auto_updates_string;
1021  				$plugin_version_string_debug .= ', ' . $auto_updates_string;
1022  			}
1023  

PHP Documentation

<?php
/**
				 * Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.
				 *
				 * @since 5.5.0
				 *
				 * @param string $auto_updates_string The string output for the auto-updates column.
				 * @param string $plugin_path         The path to the plugin file.
				 * @param array  $plugin              An array of plugin data.
				 * @param bool   $enabled             Whether auto-updates are enabled for this item.
				 */
Quick Info
  • Hook Type: Filter
  • Parameters: 4
  • File: wp-admin/includes/class-wp-debug-data.php
Related Hooks

Related hooks will be displayed here in future updates.