plugin_auto_update_debug_string
Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.
Usage
add_filter( 'plugin_auto_update_debug_string', 'wp_kama_plugin_auto_update_debug_string_filter', 10, 4 ); /** * Function for `plugin_auto_update_debug_string` filter-hook. * * @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. * * @return string */ function wp_kama_plugin_auto_update_debug_string_filter( $auto_updates_string, $plugin_path, $plugin, $enabled ){ // filter... return $auto_updates_string; }
- $auto_updates_string(string)
- The string output for the auto-updates column.
- $plugin_path(string)
- The path to the plugin file.
- $plugin(array)
- An array of plugin data.
- $enabled(true|false)
- Whether auto-updates are enabled for this item.
Changelog
Since 5.5.0 | Introduced. |
Where the hook is called
wp-admin/includes/class-wp-debug-data.php 1053
$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );