Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: plugin_auto_update_debug_string

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
991                      * Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.
992                      *
993                      * @since 5.5.0
994                      *
995                      * @param string $auto_updates_string The string output for the auto-updates column.
996                      * @param string $plugin_path         The path to the plugin file.
997                      * @param array  $plugin              An array of plugin data.
998                      * @param bool   $enabled             Whether auto-updates are enabled for this item.
999                      */
1000                     $auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );
1001
1002                     $plugin_version_string       .= ' | ' . $auto_updates_string;
1003                     $plugin_version_string_debug .= ', ' . $auto_updates_string;
1004                }
1005
1006                $info[ $plugin_part ]['fields'][ sanitize_text_field( $plugin['Name'] ) ] = array(
1007                     'label' => $plugin['Name'],
1008                     'value' => $plugin_version_string,
1009                     'debug' => $plugin_version_string_debug,