plugin_auto_update_debug_string хук-фильтр . WP 5.5.0
Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.
Использование
add_filter( 'plugin_auto_update_debug_string', 'filter_function_name_8697', 10, 4 ); function filter_function_name_8697( $auto_updates_string, $plugin_path, $plugin, $enabled ){ // filter... return $auto_updates_string; }
- $auto_updates_string(строка)
- The string output for the auto-updates column.
- $plugin_path(строка)
- The path to the plugin file.
- $plugin(массив)
- An array of plugin data.
- $enabled(true|false)
- Whether auto-updates are enabled for this item.
Список изменений
С версии 5.5.0 | Введена. |
Где вызывается хук
wp-admin/includes/class-wp-debug-data.php 1010
$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );