Filter hook 'plugin_auto_update_setting_html'

in WP Core File wp-admin/includes/class-wp-plugins-list-table.php at line 1375

View Source

plugin_auto_update_setting_html

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

Hook Information

File Location wp-admin/includes/class-wp-plugins-list-table.php View on GitHub
Hook Type Filter
Line Number 1375

Hook Parameters

Type Name Description
string $html The HTML of the plugin's auto-update column content, including toggle auto-update action links and time to next update.
string $plugin_file Path to the plugin file relative to the plugins directory.
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.

Usage Examples

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

function my_custom_filter($html, $plugin_file, $plugin_data) {
    // Your custom filtering logic here
    return $html;
}

Source Code Context

wp-admin/includes/class-wp-plugins-list-table.php:1375 - How this hook is used in WordPress core
<?php
1370  					 * @param string $plugin_file Path to the plugin file relative to the plugins directory.
1371  					 * @param array  $plugin_data An array of plugin data. See get_plugin_data()
1372  					 *                            and the {@see 'plugin_row_meta'} filter for the list
1373  					 *                            of possible values.
1374  					 */
1375  					echo apply_filters( 'plugin_auto_update_setting_html', $html, $plugin_file, $plugin_data );
1376  
1377  					wp_admin_notice(
1378  						'',
1379  						array(
1380  							'type'               => 'error',

PHP Documentation

<?php
/**
					 * Filters the HTML of the auto-updates setting for each plugin in the Plugins list table.
					 *
					 * @since 5.5.0
					 *
					 * @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.
					 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-admin/includes/class-wp-plugins-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.