plugin_auto_update_setting_html filter-hookWP 5.5.0

Filters the HTML of the auto-updates setting for each plugin in the Plugins list table.

Usage

add_filter( 'plugin_auto_update_setting_html', 'wp_kama_plugin_auto_update_setting_html_filter', 10, 3 );

/**
 * Function for `plugin_auto_update_setting_html` filter-hook.
 * 
 * @param string $html        The HTML of the plugin's auto-update column content, including toggle auto-update action links and time to next update.
 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
 * @param array  $plugin_data An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values.
 *
 * @return string
 */
function wp_kama_plugin_auto_update_setting_html_filter( $html, $plugin_file, $plugin_data ){

	// filter...
	return $html;
}
$html(string)
The HTML of the plugin's auto-update column content, including toggle auto-update action links and time to next update.
$plugin_file(string)
Path to the plugin file relative to the plugins directory.
$plugin_data(array)
An array of plugin data. See get_plugin_data() and the {@see 'plugin_row_meta'} filter for the list of possible values.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

WP_Plugins_List_Table::single_row()
plugin_auto_update_setting_html
wp-admin/includes/class-wp-plugins-list-table.php 1370
echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );

Where the hook is used in WordPress

Usage not found.